Interface MicrosoftOauth2ProviderConfigInput.Builder

  • Method Details

    • clientId

      The client ID for the Microsoft OAuth2 provider.

      Parameters:
      clientId - The client ID for the Microsoft OAuth2 provider.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientSecret

      The client secret for the Microsoft OAuth2 provider.

      Parameters:
      clientSecret - The client secret for the Microsoft OAuth2 provider.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientSecretConfig

      MicrosoftOauth2ProviderConfigInput.Builder clientSecretConfig(SecretReference clientSecretConfig)

      A reference to the Amazon Web Services Secrets Manager secret that stores the client secret. This includes the secret ID and the JSON key used to extract the client secret value from the secret. Required when clientSecretSource is set to EXTERNAL.

      Parameters:
      clientSecretConfig - A reference to the Amazon Web Services Secrets Manager secret that stores the client secret. This includes the secret ID and the JSON key used to extract the client secret value from the secret. Required when clientSecretSource is set to EXTERNAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientSecretConfig

      default MicrosoftOauth2ProviderConfigInput.Builder clientSecretConfig(Consumer<SecretReference.Builder> clientSecretConfig)

      A reference to the Amazon Web Services Secrets Manager secret that stores the client secret. This includes the secret ID and the JSON key used to extract the client secret value from the secret. Required when clientSecretSource is set to EXTERNAL.

      This is a convenience method that creates an instance of the SecretReference.Builder avoiding the need to create one manually via SecretReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clientSecretConfig(SecretReference).

      Parameters:
      clientSecretConfig - a consumer that will call methods on SecretReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientSecretSource

      MicrosoftOauth2ProviderConfigInput.Builder clientSecretSource(String clientSecretSource)

      The source type of the client secret. Use MANAGED if the secret is managed by the service, or EXTERNAL if you manage the secret yourself in Amazon Web Services Secrets Manager.

      Parameters:
      clientSecretSource - The source type of the client secret. Use MANAGED if the secret is managed by the service, or EXTERNAL if you manage the secret yourself in Amazon Web Services Secrets Manager.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientSecretSource

      MicrosoftOauth2ProviderConfigInput.Builder clientSecretSource(SecretSourceType clientSecretSource)

      The source type of the client secret. Use MANAGED if the secret is managed by the service, or EXTERNAL if you manage the secret yourself in Amazon Web Services Secrets Manager.

      Parameters:
      clientSecretSource - The source type of the client secret. Use MANAGED if the secret is managed by the service, or EXTERNAL if you manage the secret yourself in Amazon Web Services Secrets Manager.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tenantId

      The Microsoft Entra ID (formerly Azure AD) tenant ID for your organization. This identifies the specific tenant within Microsoft's identity platform where your application is registered.

      Parameters:
      tenantId - The Microsoft Entra ID (formerly Azure AD) tenant ID for your organization. This identifies the specific tenant within Microsoft's identity platform where your application is registered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.