Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class HttpSessionOAuth2AuthorizationRequestRepository
- Object
- HttpSessionOAuth2AuthorizationRequestRepository
ImplementsAuthorizationRequestRepository
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.
Constructors
public HttpSessionOAuth2AuthorizationRequestRepository() |
Methods
public void saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, HttpServer.Request request) | Keeps authorizationRequest for the browser that made request. |
public OAuth2AuthorizationRequest removeAuthorizationRequest(HttpServer.Request request) | Takes back what was kept for this browser, so that it answers one callback and no more; null when nothing was. |
Inherited methods
Constructor details
HttpSessionOAuth2AuthorizationRequestRepository
public HttpSessionOAuth2AuthorizationRequestRepository()Method details
saveAuthorizationRequest
public void saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, HttpServer.Request request)Keeps
authorizationRequest for the browser that made request.removeAuthorizationRequest
public OAuth2AuthorizationRequest removeAuthorizationRequest(HttpServer.Request request)Takes back what was kept for this browser, so that it answers one
callback and no more; null when nothing was.