Class GlobalValidation
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.GlobalValidation
-
public final class GlobalValidation extends Object
The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.
-
-
Constructor Summary
Constructors Constructor Description GlobalValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
excludedPaths()
Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.String
redirectToProvider()
Get the redirectToProvider property: The default authentication provider to use when multiple providers are configured.UnauthenticatedClientActionV2
unauthenticatedClientAction()
Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.void
validate()
Validates the instance.GlobalValidation
withExcludedPaths(List<String> excludedPaths)
Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.GlobalValidation
withRedirectToProvider(String redirectToProvider)
Set the redirectToProvider property: The default authentication provider to use when multiple providers are configured.GlobalValidation
withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction)
Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.
-
-
-
Method Detail
-
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.
-
-