@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:16.751Z") @Stability(value=Experimental) public class OAuthScope extends software.amazon.jsii.JsiiObject
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-idp-settings.html| Modifier and Type | Field and Description |
|---|---|
static OAuthScope |
COGNITO_ADMIN
(experimental) Grants access to Amazon Cognito User Pool API operations that require access tokens, such as UpdateUserAttributes and VerifyUserAttribute.
|
static OAuthScope |
EMAIL
(experimental) Grants access to the 'email' and 'email_verified' claims.
|
static OAuthScope |
OPENID
(experimental) Returns all user attributes in the ID token that are readable by the client.
|
static OAuthScope |
PHONE
(experimental) Grants access to the 'phone_number' and 'phone_number_verified' claims.
|
static OAuthScope |
PROFILE
(experimental) Grants access to all user attributes that are readable by the client Automatically includes access to `OAuthScope.OPENID`.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OAuthScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
OAuthScope(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static OAuthScope |
custom(String name)
(experimental) Custom scope is one that you define for your own resource server in the Resource Servers.
|
String |
getScopeName()
(experimental) The name of this scope as recognized by CloudFormation.
|
static OAuthScope |
resourceServer(IUserPoolResourceServer server,
ResourceServerScope scope)
(experimental) Adds a custom scope that's tied to a resource server in your stack.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final OAuthScope COGNITO_ADMIN
@Stability(value=Experimental) public static final OAuthScope EMAIL
Automatically includes access to OAuthScope.OPENID.
@Stability(value=Experimental) public static final OAuthScope OPENID
@Stability(value=Experimental) public static final OAuthScope PHONE
Automatically includes access to OAuthScope.OPENID.
@Stability(value=Experimental) public static final OAuthScope PROFILE
protected OAuthScope(software.amazon.jsii.JsiiObjectRef objRef)
protected OAuthScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static OAuthScope custom(@NotNull String name)
The format is 'resource-server-identifier/scope'.
name - This parameter is required.https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html@Stability(value=Experimental) @NotNull public static OAuthScope resourceServer(@NotNull IUserPoolResourceServer server, @NotNull ResourceServerScope scope)
server - This parameter is required.scope - This parameter is required.@Stability(value=Experimental) @NotNull public String getScopeName()
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-allowedoauthscopesCopyright © 2021. All rights reserved.