@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.675Z") @Stability(value=Stable) public interface OAuthSettings 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 |
OAuthSettings.Builder
A builder for
OAuthSettings |
static class |
OAuthSettings.Jsii$Proxy
An implementation for
OAuthSettings |
| Modifier and Type | Method and Description |
|---|---|
static OAuthSettings.Builder |
builder() |
default List<String> |
getCallbackUrls()
List of allowed redirect URLs for the identity providers.
|
default OAuthFlows |
getFlows()
OAuth flows that are allowed with this client.
|
default List<String> |
getLogoutUrls()
List of allowed logout URLs for the identity providers.
|
default List<OAuthScope> |
getScopes()
OAuth scopes that are allowed with this client.
|
@Stability(value=Stable) @Nullable default List<String> getCallbackUrls()
Default: - ['https://example.com'] if either authorizationCodeGrant or implicitCodeGrant flows are enabled, no callback URLs otherwise.
@Stability(value=Stable) @Nullable default OAuthFlows getFlows()
Default: {authorizationCodeGrant:true,implicitCodeGrant:true}
@Stability(value=Stable) @Nullable default List<String> getLogoutUrls()
Default: - no logout URLs
@Stability(value=Stable) @Nullable default List<OAuthScope> getScopes()
Default: [OAuthScope.PHONE,OAuthScope.EMAIL,OAuthScope.OPENID,OAuthScope.PROFILE,OAuthScope.COGNITO_ADMIN]
@Stability(value=Stable) static OAuthSettings.Builder builder()
OAuthSettings.Builder of OAuthSettingsCopyright © 2022. All rights reserved.