InsecureCookieBasedOAuthPersistence
This is an example implementation which stores CSRF and AccessToken values in an INSECURE client-side cookie. Access-tokens for end-services are fully available to the browser so do not use this in production!
Functions
Assign a CSRF token to this OAuth auth redirection (to the end-service) response. Opportunity here to modify the response returned to the user when the redirection happens.
Assign a nonce to this OIDC auth redirection (to the end-service) response. Opportunity here to modify the response returned to the user when the redirection happens.
opportunity to store the uri that the request was made before authentication this will then be redirected back to after auth
Assign the swapped AccessToken (and optional IdToken) returned by the end-service. Opportunity here to modify the response returned to the user when the redirection happens.
Build the default failure response which occurs when a failure occurs during the callback process (eg. a mismatch/missing CSRF or failure occurring when calling into the end-service for the access-token.
Retrieve the stored CSRF token for this user request
Retrieve the stored nonce token for this user request
Retrieve the stored original uri for this user request
Retrieve the stored AccessToken token for this user request