Class MicrosoftIdentityProviderConfig

All Implemented Interfaces:
Serializable, JWTAuthorizationGrantConfig, IssuerValidation

public class MicrosoftIdentityProviderConfig extends OIDCIdentityProviderConfig
See Also:
  • Constructor Details

    • MicrosoftIdentityProviderConfig

      public MicrosoftIdentityProviderConfig(IdentityProviderModel model)
    • MicrosoftIdentityProviderConfig

      public MicrosoftIdentityProviderConfig()
  • Method Details

    • getTenantId

      public String getTenantId()
    • setTenantId

      public void setTenantId(String tenantId)
    • getClientSecretDestinationConfigKeys

      protected String[] getClientSecretDestinationConfigKeys()
      Description copied from class: OAuth2IdentityProviderConfig
      Config keys that determine where/how a client secret is sent. Includes baseUrl, which some social providers (for example GitHub/OpenShift) use to derive the token endpoint at runtime. Provider-specific configs may override to add keys such as tenantId or sandbox.
      Overrides:
      getClientSecretDestinationConfigKeys in class OAuth2IdentityProviderConfig
    • isClientSecretDestinationChanged

      protected boolean isClientSecretDestinationChanged(String key, String stored, String updated)
      An absent tenantId resolves to the multi-tenant common endpoint at runtime, so treat the two as equivalent when deciding whether the token destination changed. The derivation mirrors MicrosoftIdentityProvider: only null/empty fall back to common; any other value is trimmed.
      Overrides:
      isClientSecretDestinationChanged in class OAuth2IdentityProviderConfig
      Parameters:
      key - the config key being compared
      stored - the currently stored value, possibly null
      updated - the submitted value, possibly null
      Returns:
      true if the values represent different destinations