Class ClientRegistration.ProviderDetails

java.lang.Object
com.codename1.backend.security.oauth2.client.ClientRegistration.ProviderDetails
Enclosing class:
ClientRegistration

public static final class ClientRegistration.ProviderDetails extends Object
Where the provider is.
  • Method Details

    • getAuthorizationUri

      public String getAuthorizationUri()
    • getTokenUri

      public String getTokenUri()
    • getUserInfoUri

      public String getUserInfoUri()
      Where the user's attributes are read from, or null.
    • getUserEmailsUri

      public String getUserEmailsUri()
      The attribute that names the user; sub for an OpenID Connect provider that says nothing else. Where the provider lists the user's email addresses and says which of them it has verified, for one whose user info says nothing of that: GitHub's /user/emails. Null for a provider that has none. It answers a JSON array of {"email", "primary", "verified"}, and LinkingOAuth2UserService reads the primary verified one from it.
    • getUserNameAttributeName

      public String getUserNameAttributeName()
    • getJwkSetUri

      public String getJwkSetUri()
      Where the keys that sign ID tokens are published, or null.
    • getIssuerUri

      public String getIssuerUri()
      The iss every ID token must carry, or null.
    • getIssuerTemplate

      public String getIssuerTemplate()
      For a provider that issues under one address per tenant: the issuer with {tenantid} where the token's tid claim goes. Null otherwise.
    • getIdTokenAlgorithms

      public String[] getIdTokenAlgorithms()
      The names of the algorithms an ID token may be signed with, or null for what the metadata says, and RS256 and ES256 when there is none.
    • isAuthorizationResponseIssParameterSupported

      public boolean isAuthorizationResponseIssParameterSupported()
      Whether the provider says it names itself in every answer it sends back with the browser: the iss parameter of RFC 9207, announced in its metadata as authorization_response_iss_parameter_supported. An answer without one is then refused.
    • isIssuer

      public boolean isIssuer(String issuer)
      Whether issuer is this provider: its getIssuerUri(), character for character, or for a provider with one issuer per tenant its getIssuerTemplate() with a tenant id where {tenantid} is. False when the registration names no issuer at all.