Login Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Login
- com.
Implements
public final class Login
implements JsonSerializable<Login>
The configuration settings of the login flow of users using App Service Authentication/Authorization.
Constructor Summary
| Constructor | Description |
|---|---|
| Login() |
Creates an instance of Login class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
allowedExternalRedirectUrls()
Get the allowed |
|
Cookie |
cookieExpiration()
Get the cookie |
| static Login |
fromJson(JsonReader jsonReader)
Reads an instance of Login from the Json |
| Nonce |
nonce()
Get the nonce property: The configuration settings of the nonce used in the login flow. |
| Boolean |
preserveUrlFragmentsForLogins()
Get the preserve |
|
Login |
routes()
Get the routes property: The routes that specify the endpoints used for login and logout requests. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Token |
tokenStore()
Get the token |
| void |
validate()
Validates the instance. |
| Login |
withAllowedExternalRedirectUrls(List<String> allowedExternalRedirectUrls)
Set the allowed |
| Login |
withCookieExpiration(CookieExpiration cookieExpiration)
Set the cookie |
| Login |
withNonce(Nonce nonce)
Set the nonce property: The configuration settings of the nonce used in the login flow. |
| Login |
withPreserveUrlFragmentsForLogins(Boolean preserveUrlFragmentsForLogins)
Set the preserve |
| Login |
withRoutes(LoginRoutes routes)
Set the routes property: The routes that specify the endpoints used for login and logout requests. |
| Login |
withTokenStore(TokenStore tokenStore)
Set the token |
Methods inherited from java.lang.Object
Constructor Details
Login
public Login()
Creates an instance of Login class.
Method Details
allowedExternalRedirectUrls
public List<String> allowedExternalRedirectUrls()
Get the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting typically only needed by Windows Store application backends. Note that URLs within the current domain are always implicitly allowed.
Returns:
cookieExpiration
public CookieExpiration cookieExpiration()
Get the cookieExpiration property: The configuration settings of the session cookie's expiration.
Returns:
fromJson
public static Login fromJson(JsonReader jsonReader)
Reads an instance of Login from the JsonReader.
Parameters:
Returns:
Throws:
nonce
public Nonce nonce()
Get the nonce property: The configuration settings of the nonce used in the login flow.
Returns:
preserveUrlFragmentsForLogins
public Boolean preserveUrlFragmentsForLogins()
Get the preserveUrlFragmentsForLogins property: true if the fragments from the request are preserved after the login request is made; otherwise, false.
Returns:
routes
public LoginRoutes routes()
Get the routes property: The routes that specify the endpoints used for login and logout requests.
Returns:
toJson
tokenStore
public TokenStore tokenStore()
Get the tokenStore property: The configuration settings of the token store.
Returns:
validate
public void validate()
Validates the instance.
withAllowedExternalRedirectUrls
public Login withAllowedExternalRedirectUrls(List<String> allowedExternalRedirectUrls)
Set the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting typically only needed by Windows Store application backends. Note that URLs within the current domain are always implicitly allowed.
Parameters:
Returns:
withCookieExpiration
public Login withCookieExpiration(CookieExpiration cookieExpiration)
Set the cookieExpiration property: The configuration settings of the session cookie's expiration.
Parameters:
Returns:
withNonce
public Login withNonce(Nonce nonce)
Set the nonce property: The configuration settings of the nonce used in the login flow.
Parameters:
Returns:
withPreserveUrlFragmentsForLogins
public Login withPreserveUrlFragmentsForLogins(Boolean preserveUrlFragmentsForLogins)
Set the preserveUrlFragmentsForLogins property: true if the fragments from the request are preserved after the login request is made; otherwise, false.
Parameters:
Returns:
withRoutes
public Login withRoutes(LoginRoutes routes)
Set the routes property: The routes that specify the endpoints used for login and logout requests.
Parameters:
Returns:
withTokenStore
public Login withTokenStore(TokenStore tokenStore)
Set the tokenStore property: The configuration settings of the token store.
Parameters:
Returns: