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

    Constructors
    Constructor
    Description
    CognitoOidcExtractor(org.pac4j.oidc.config.OidcConfiguration configuration, org.pac4j.oidc.client.OidcClient client)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.pac4j.core.credentials.Credentials>
    extract(org.pac4j.core.context.CallContext context)
     

    Methods inherited from class org.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor

    retrieveParameters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      extract in interface org.pac4j.core.credentials.extractor.CredentialsExtractor
      Overrides:
      extract in class org.pac4j.oidc.credentials.extractor.OidcCredentialsExtractor