@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:03.402Z") @Stability(value=Experimental) 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()
(experimental) Initiate an authorization code grant flow, which provides an authorization code as the response.
|
default Boolean |
getClientCredentials()
(experimental) Client should get the access token and ID token from the token endpoint using a combination of client and client_secret.
|
default Boolean |
getImplicitCodeGrant()
(experimental) The client should get the access token and ID token directly.
|
@Stability(value=Experimental) @Nullable default Boolean getAuthorizationCodeGrant()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getClientCredentials()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getImplicitCodeGrant()
Default: false
@Stability(value=Experimental) static OAuthFlows.Builder builder()
OAuthFlows.Builder of OAuthFlowsCopyright © 2022. All rights reserved.