from Hacker News

Ask HN: How are you authenticating rest service clients

by devb0x on 12/2/13, 8:40 PM with 12 comments

I've been playing with asp.net webapi and basic auth header (with user:pass in base 64).

If you have a angular or knockout front end, are you storing the login details in a cookie and passing in the header, or via a token? Where are you storing that token?

I am new to this sort of api / javascript front end and want to deal with security according to best practice.

What do you recommend?