Class GlobalValidation
java.lang.Object
com.azure.resourcemanager.appservice.models.GlobalValidation
The configuration settings that determines the validation flow of users using App Service
Authentication/Authorization.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.Get the redirectToProvider property: The default authentication provider to use when multiple providers are configured.Get the requireAuthentication property: <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.void
validate()
Validates the instance.withExcludedPaths
(List<String> excludedPaths) Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.withRedirectToProvider
(String redirectToProvider) Set the redirectToProvider property: The default authentication provider to use when multiple providers are configured.withRequireAuthentication
(Boolean requireAuthentication) Set the requireAuthentication property: <code>true</code> if the authentication flow is required any request is made; otherwise, <code>false</code>.withUnauthenticatedClientAction
(UnauthenticatedClientActionV2 unauthenticatedClientAction) Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.
-
Constructor Details
-
GlobalValidation
public GlobalValidation()
-
-
Method Details
-
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
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
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
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
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
Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.- Returns:
- the excludedPaths value.
-
withExcludedPaths
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.
-