@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.674Z") @Stability(value=Stable) public interface OAuthFlows extends software.amazon.jsii.JsiiSerializable
Example:
UserPool pool = new UserPool(this, "Pool");
pool.addClient("app-client", UserPoolClientOptions.builder()
.oAuth(OAuthSettings.builder()
.flows(OAuthFlows.builder()
.authorizationCodeGrant(true)
.build())
.scopes(List.of(OAuthScope.OPENID))
.callbackUrls(List.of("https://my-app-domain.com/welcome"))
.logoutUrls(List.of("https://my-app-domain.com/signin"))
.build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
OAuthFlows.Builder
A builder for
OAuthFlows |
static class |
OAuthFlows.Jsii$Proxy
An implementation for
OAuthFlows |
| Modifier and Type | Method and Description |
|---|---|
static OAuthFlows.Builder |
builder() |
default Boolean |
getAuthorizationCodeGrant()
Initiate an authorization code grant flow, which provides an authorization code as the response.
|
default Boolean |
getClientCredentials()
Client should get the access token and ID token from the token endpoint using a combination of client and client_secret.
|
default Boolean |
getImplicitCodeGrant()
The client should get the access token and ID token directly.
|
@Stability(value=Stable) @Nullable default Boolean getAuthorizationCodeGrant()
Default: false
@Stability(value=Stable) @Nullable default Boolean getClientCredentials()
Default: false
@Stability(value=Stable) @Nullable default Boolean getImplicitCodeGrant()
Default: false
@Stability(value=Stable) static OAuthFlows.Builder builder()
OAuthFlows.Builder of OAuthFlowsCopyright © 2022. All rights reserved.