nerfduster
nerfduster

Reputation: 117

Access Custom Session in ServiceStack from TryAuthenticate

Is there anyway to access a custom session from inside TryAuthenticate on my custom CredentialsAuthProvider? I need to access a third piece of data to authenticate a user (besides userName and password)

I guess I just need to get that missing piece of data, so any other reasonable technique would be ok.

Upvotes: 1

Views: 161

Answers (1)

ristaloff
ristaloff

Reputation: 130

To access the session inside TryAuthenticate(IServiceBase authService, string userName, string password). You just do something like: var session = authService.GetSession();

Upvotes: 1

Related Questions