Class CognitoOidcExtractor
java.lang.Object
org.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor
au.org.ala.pac4j.oidc.credentials.extractor.CognitoOidcExtractor
- All Implemented Interfaces:
org.pac4j.core.credentials.extractor.CredentialsExtractor
public class CognitoOidcExtractor
extends org.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor
Wrapper for the
OidcExtractor to handle the missing state.
This occurs if there is an issue after Cognito authentication but before the app callback has processed
authentication code and redirected to the secure page.
This has proven to be an issue if the user re-clicked on the login button during the callback processing.-
Field Summary
Fields inherited from class org.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor
client, configuration -
Constructor Summary
ConstructorsConstructorDescriptionCognitoOidcExtractor(org.pac4j.oidc.config.OidcConfiguration configuration, org.pac4j.oidc.client.OidcClient client) -
Method Summary
Methods inherited from class org.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor
retrieveParameters
-
Constructor Details
-
CognitoOidcExtractor
public CognitoOidcExtractor(org.pac4j.oidc.config.OidcConfiguration configuration, org.pac4j.oidc.client.OidcClient client)
-
-
Method Details
-
extract
public Optional<org.pac4j.core.credentials.Credentials> extract(org.pac4j.core.context.CallContext context) - Specified by:
extractin interfaceorg.pac4j.core.credentials.extractor.CredentialsExtractor- Overrides:
extractin classorg.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor
-