I would like new users to be automatically authenticated after they have successfully registered.
Current Flow
- User registers supplying username and password
- User is redirected to protected content
- User is challenged and has to re-enter their registration credentials.
Desired Flow
- User registers supplying username and password
- User is successfully redirected to protected content
I am using HttpBasic Authentication (plus SSL) on a NancyFX, C# .NET stack.
What you need seems like a form of Forms Authentication.
You do not have to use ASP.NET forms authentication but can simulate that using a cookie. So instead of browser challenge, you show a form and on successful entry, you set a cookie.
Alternatively after browser challenge, set the cookie on server and check for that on subsequent calls.