This project is read-only.

User Token creation after login

Topics: Administration, General
Nov 13, 2014 at 1:21 PM
Hi All,

How to create a user token, once they login?

Any NuGet package available for it? I am completely stuck!! plz guide me.

Nov 13, 2014 at 5:29 PM
I don't understand your question exactly. There should be a UserToken for the currently logged-in User
for instance gives you the name of the current logged-in user.
Nov 14, 2014 at 6:01 AM
I meant, For a logged in user generally we create a usertoken and would use it as cookie, to authenticate each request to and fro from browser to server. If want to implement the same in Orchard, What I should do????
Nov 14, 2014 at 6:36 AM
If you check the Orchard.Users module, you'll see that the AccountController uses an IAuthenticationService to sign in a user. The default implementation uses Forms Authentication (check Orchard.Framework.Security.Providers.FormsAuthenticationService).