@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:46.867Z")
public interface OAuthFlows
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 java.lang.Boolean |
getAuthorizationCodeGrant()
Initiate an authorization code grant flow, which provides an authorization code as the response.
|
default java.lang.Boolean |
getClientCredentials()
Client should get the access token and ID token from the token endpoint using a combination of client and client_secret.
|
default java.lang.Boolean |
getImplicitCodeGrant()
The client should get the access token and ID token directly.
|
default java.lang.Boolean getAuthorizationCodeGrant()
Default: false
default java.lang.Boolean getClientCredentials()
Default: false
default java.lang.Boolean getImplicitCodeGrant()
Default: false
static OAuthFlows.Builder builder()
OAuthFlows.Builder
of OAuthFlows