I've spent the past week on SO and in books reading about authentication and started to roll out Basic Authentication for my WebAPI so that HTML clients can let users login/register/logout, but Basic Auth doesn't facilitate logging out so I'm back at square one.
Details:
I don't need to let users log in with other services. I don't need facebook or google logins. Just a username/password.
I need users to be able to log in / log out / register from the client application (not the browser).
I don't mind sending credentials over the wire since I'll be using SSL.
Currently there's only one client but there will be others accessing the API, so I'll need to implement something akin to api keys in the future. Maybe this is a separate issue.
I have a RESTish WebAPI that accepts/returns JSON to html/js clients in other domains.
This is for prototyping so I don't need the best possible solution, just something that's good enough for pre-release and has a low time-to-implement.
Where should I start? What would you do, and why? Is Forms Auth an option?