Class HttpSessionOAuth2AuthorizationRequestRepository
java.lang.Object
com.codename1.backend.security.oauth2.client.HttpSessionOAuth2AuthorizationRequestRepository
- All Implemented Interfaces:
AuthorizationRequestRepository
public final class HttpSessionOAuth2AuthorizationRequestRepository
extends Object
implements AuthorizationRequestRepository
Keeps the request in the HTTP session: the default, for every provider that
answers with a redirect. One sign-in waits per session; starting another
replaces it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTakes back what was kept for this browser, so that it answers one callback and no more; null when nothing was.voidsaveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, HttpServer.Request request) KeepsauthorizationRequestfor the browser that maderequest.
-
Constructor Details
-
HttpSessionOAuth2AuthorizationRequestRepository
public HttpSessionOAuth2AuthorizationRequestRepository()
-
-
Method Details
-
saveAuthorizationRequest
public void saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, HttpServer.Request request) Description copied from interface:AuthorizationRequestRepositoryKeepsauthorizationRequestfor the browser that maderequest.- Specified by:
saveAuthorizationRequestin interfaceAuthorizationRequestRepository
-
removeAuthorizationRequest
Description copied from interface:AuthorizationRequestRepositoryTakes back what was kept for this browser, so that it answers one callback and no more; null when nothing was.- Specified by:
removeAuthorizationRequestin interfaceAuthorizationRequestRepository
-