Class MicrosoftAuthenticationProvider

All Implemented Interfaces:
AuthenticationProvider<Credentials>

public class MicrosoftAuthenticationProvider extends OpenIDAuthenticationProvider
Simplified factory to create an OAuth2AuthenticationProvider for Microsoft.
  • Field Details

    • COMMON_TENANT

      public static final String COMMON_TENANT
      The common tenant identifier for Microsoft OAuth2.
      See Also:
    • CONSUMERS_TENANT

      public static final String CONSUMERS_TENANT
      The consumers tenant identifier for Microsoft OAuth2.
      See Also:
    • ORGANIZATIONS_TENANT

      public static final String ORGANIZATIONS_TENANT
      The organizations tenant identifier for Microsoft OAuth2.
      See Also:
    • DEFAULT_SCOPES

      public static final List<String> DEFAULT_SCOPES
  • Constructor Details

    • MicrosoftAuthenticationProvider

      public MicrosoftAuthenticationProvider(@Nullable @Nullable javafx.stage.Stage stage, @NotNull @NotNull OAuth2Options options)
      Create an OAuth2AuthenticationProvider for Microsoft.
      Parameters:
      stage - the JavaFX application stage
      options - the custom set of OAuth2 options which include configuration like client ID, client secret, scopes, and other OAuth2 parameters.
    • MicrosoftAuthenticationProvider

      public MicrosoftAuthenticationProvider(@Nullable @Nullable javafx.stage.Stage stage, @NotNull @NotNull String clientId, @NotNull @NotNull String clientSecret, @NotNull @NotNull String tenant)
      Create an OAuth2AuthenticationProvider for Microsoft.
      Parameters:
      stage - the JavaFX application stage
      clientId - the client ID issued by Microsoft for your application.
      clientSecret - the client secret issued by Microsoft for securing your application.
      tenant - the GUID or tenant ID that represents your application's directory.
  • Method Details