DcrConfigurationType
¶
Used by
Source code in docs_src/capo_cognito_identity_provider/types/dcr_configuration_type.py
allowed_scopes
instance-attribute
¶
allowed_scopes: NotRequired[ScopeListType]
The scopes that an app client created through dynamic client registration can request, in addition to the standard OpenID Connect (OIDC) scopes. You can include custom scopes from your resource servers and aws.cognito.signin.user.admin. Registered app clients can request the OIDC scopes openid, email, phone, and profile without listing them here. If you don't set this value, registered app clients can request only the OIDC scopes. A registered app client can't request the aws.cognito/dcr/register scope, even if you include it in this list.
authenticated_grant_types
instance-attribute
¶
authenticated_grant_types: NotRequired[OAuthFlowsType]
The OAuth grant types that an app client created through authenticated registration can request. If you don't set this value, authenticated registration permits the code and client_credentials grant types. If you set an empty list, Amazon Cognito rejects authenticated registration requests. Dynamic client registration supports the following values. Amazon Cognito accepts implicit in this list but ignores it.
- code
-
Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the
/oauth2/tokenendpoint. - client_credentials
-
Issue the access token from the
/oauth2/tokenendpoint directly to a non-person user using a combination of the client ID and client secret.
enable_status
instance-attribute
¶
enable_status: NotRequired[StatusType]
Specifies whether dynamic client registration is turned on for the user pool. If you provide a dynamic client registration configuration without this value, Amazon Cognito turns dynamic client registration on.
open_dcr_enabled
instance-attribute
¶
open_dcr_enabled: BooleanType
Specifies whether open registration is turned on. When open registration is on, applications can register app clients without an initial access token. The default value is false.
open_dcr_grant_types
instance-attribute
¶
open_dcr_grant_types: NotRequired[OAuthFlowsType]
The OAuth grant types that an app client created through open registration can request. If you don't set this value, open registration permits only the code grant type. If you set an empty list, Amazon Cognito rejects open registration requests. If you add client_credentials, anyone can register an app client that requests machine-to-machine (M2M) access tokens, and you pay for the M2M token requests that those app clients make. Dynamic client registration supports the following values. Amazon Cognito accepts implicit in this list but ignores it.
- code
-
Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the
/oauth2/tokenendpoint. - client_credentials
-
Issue the access token from the
/oauth2/tokenendpoint directly to a non-person user using a combination of the client ID and client secret.