@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.589Z") @Stability(value=Stable) public interface OAuthFlows extends software.amazon.jsii.JsiiSerializable
Example:
UserPool userpool = UserPool.Builder.create(this, "UserPool").build();
UserPoolClient client = userpool.addClient("Client", UserPoolClientOptions.builder()
// ...
.oAuth(OAuthSettings.builder()
.flows(OAuthFlows.builder()
.implicitCodeGrant(true)
.build())
.callbackUrls(List.of("https://myapp.com/home", "https://myapp.com/users"))
.build())
.build());
UserPoolDomain domain = userpool.addDomain("Domain", UserPoolDomainOptions.builder().build());
String signInUrl = domain.signInUrl(client, SignInUrlOptions.builder()
.redirectUri("https://myapp.com/home")
.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.