Class GlobalValidation

java.lang.Object
com.azure.resourcemanager.appservice.models.GlobalValidation

public final class GlobalValidation extends Object
The configuration settings that determines the validation flow of users using App Service Authentication/Authorization.
  • Constructor Details

    • GlobalValidation

      public GlobalValidation()
  • Method Details

    • requireAuthentication

      public Boolean requireAuthentication()
      Get the requireAuthentication property: <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
      Returns:
      the requireAuthentication value.
    • withRequireAuthentication

      public GlobalValidation withRequireAuthentication(Boolean requireAuthentication)
      Set the requireAuthentication property: <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.
      Parameters:
      requireAuthentication - the requireAuthentication value to set.
      Returns:
      the GlobalValidation object itself.
    • unauthenticatedClientAction

      public UnauthenticatedClientActionV2 unauthenticatedClientAction()
      Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.
      Returns:
      the unauthenticatedClientAction value.
    • withUnauthenticatedClientAction

      public GlobalValidation withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction)
      Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.
      Parameters:
      unauthenticatedClientAction - the unauthenticatedClientAction value to set.
      Returns:
      the GlobalValidation object itself.
    • redirectToProvider

      public String redirectToProvider()
      Get the redirectToProvider property: The default authentication provider to use when multiple providers are configured. This setting is only needed if multiple providers are configured and the unauthenticated client action is set to "RedirectToLoginPage".
      Returns:
      the redirectToProvider value.
    • withRedirectToProvider

      public GlobalValidation withRedirectToProvider(String redirectToProvider)
      Set the redirectToProvider property: The default authentication provider to use when multiple providers are configured. This setting is only needed if multiple providers are configured and the unauthenticated client action is set to "RedirectToLoginPage".
      Parameters:
      redirectToProvider - the redirectToProvider value to set.
      Returns:
      the GlobalValidation object itself.
    • excludedPaths

      public List<String> excludedPaths()
      Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.
      Returns:
      the excludedPaths value.
    • withExcludedPaths

      public GlobalValidation withExcludedPaths(List<String> excludedPaths)
      Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.
      Parameters:
      excludedPaths - the excludedPaths value to set.
      Returns:
      the GlobalValidation object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.