Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface AuthorizationRequestRepository
Known subtypesCookieOAuth2AuthorizationRequestRepository, HttpSessionOAuth2AuthorizationRequestRepository
Where an
OAuth2AuthorizationRequest waits while the user is at the
identity provider.Methods
public abstract void saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, HttpServer.Request request) | Keeps authorizationRequest for the browser that made request. |
public abstract 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. |
Method details
saveAuthorizationRequest
public abstract void saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, HttpServer.Request request)Keeps
authorizationRequest for the browser that made request.removeAuthorizationRequest
public abstract 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.