You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this repo for authentication. Here is my understanding before I describe my question:
By default it is using stateless Cookie approach where the Cookie is not stored at the server.
When client sends the request with the Cookie then in Auth.scala the Cookie is validated using AuthenticatorService.
On signOut the authenticator is discarded.
My question:
Where is the object for AuthenticatorService for each user stored ? I don't see any storage defined anywhere for this.
Refer these two code snippets: Inside method Auth.scala:authenticate
for {
authenticator <- env.authenticatorService.create(loginInfo).map(authenticatorWithRememberMe(_, rememberMe))
cookie <- env.authenticatorService.init(authenticator)
result <- env.authenticatorService.embed(cookie, Redirect(targetUri).withSession(request.session - "ENTRY_URI"))
I am using this repo for authentication. Here is my understanding before I describe my question:
My question:
Where is the object for AuthenticatorService for each user stored ? I don't see any storage defined anywhere for this.
Refer these two code snippets:
Inside method Auth.scala:authenticate
Inside method Auth.scala:signOut
env.authenticatorService.discard(request.authenticator, Redirect(routes.Application.index))
Thanks.
Nikhil
The text was updated successfully, but these errors were encountered: