GlobalValidation Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. GlobalValidation
- com.
Implements
public final class GlobalValidation
implements JsonSerializable<GlobalValidation>
The configuration settings that determines the validation flow of users using App Service Authentication/Authorization.
Constructor Summary
Constructor | Description |
---|---|
GlobalValidation() |
Creates an instance of Global |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
excludedPaths()
Get the excluded |
static
Global |
fromJson(JsonReader jsonReader)
Reads an instance of Global |
String |
redirectToProvider()
Get the redirect |
Boolean |
requireAuthentication()
Get the require |
Json |
toJson(JsonWriter jsonWriter) |
Unauthenticated |
unauthenticatedClientAction()
Get the unauthenticated |
void |
validate()
Validates the instance. |
Global |
withExcludedPaths(List<String> excludedPaths)
Set the excluded |
Global |
withRedirectToProvider(String redirectToProvider)
Set the redirect |
Global |
withRequireAuthentication(Boolean requireAuthentication)
Set the require |
Global |
withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction)
Set the unauthenticated |
Methods inherited from java.lang.Object
Constructor Details
GlobalValidation
public GlobalValidation()
Creates an instance of GlobalValidation class.
Method Details
excludedPaths
public List
Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.
Returns:
fromJson
public static GlobalValidation fromJson(JsonReader jsonReader)
Reads an instance of GlobalValidation from the JsonReader.
Parameters:
Returns:
Throws:
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:
requireAuthentication
public Boolean requireAuthentication()
Get the requireAuthentication property: true
if the authentication flow is required any request is made; otherwise, false
.
Returns:
toJson
unauthenticatedClientAction
public UnauthenticatedClientActionV2 unauthenticatedClientAction()
Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.
Returns:
validate
public void validate()
Validates the instance.
withExcludedPaths
public GlobalValidation withExcludedPaths(List
Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login page.
Parameters:
Returns:
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:
Returns:
withRequireAuthentication
public GlobalValidation withRequireAuthentication(Boolean requireAuthentication)
Set the requireAuthentication property: true
if the authentication flow is required any request is made; otherwise, false
.
Parameters:
Returns:
withUnauthenticatedClientAction
public GlobalValidation withUnauthenticatedClientAction(UnauthenticatedClientActionV2 unauthenticatedClientAction)
Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to access the app.
Parameters:
Returns:
Applies to
Azure SDK for Java