Skip to content

DcrConfigurationType

Source code in docs_src/capo_cognito_identity_provider/types/dcr_configuration_type.py
class DcrConfigurationType(TypedDict, closed=True):
    enable_status: NotRequired[
        "capo_cognito_identity_provider.types.status_type.StatusType"
    ]
    """<p>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.</p>"""
    open_dcr_enabled: "capo_cognito_identity_provider.types.boolean_type.BooleanType"
    """<p>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 <code>false</code>.</p>"""
    authenticated_grant_types: NotRequired[
        "capo_cognito_identity_provider.types.o_auth_flows_type.OAuthFlowsType"
    ]
    """<p>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>code</code> and <code>client_credentials</code> grant types. If you set an empty list, Amazon Cognito rejects authenticated registration requests. Dynamic client registration supports the following values. Amazon Cognito accepts <code>implicit</code> in this list but ignores it.</p> <dl> <dt>code</dt> <dd> <p>Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the <code>/oauth2/token</code> endpoint.</p> </dd> <dt>client_credentials</dt> <dd> <p>Issue the access token from the <code>/oauth2/token</code> endpoint directly to a non-person user using a combination of the client ID and client secret.</p> </dd> </dl>"""
    open_dcr_grant_types: NotRequired[
        "capo_cognito_identity_provider.types.o_auth_flows_type.OAuthFlowsType"
    ]
    """<p>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>code</code> grant type. If you set an empty list, Amazon Cognito rejects open registration requests. If you add <code>client_credentials</code>, 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 <code>implicit</code> in this list but ignores it.</p> <dl> <dt>code</dt> <dd> <p>Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the <code>/oauth2/token</code> endpoint.</p> </dd> <dt>client_credentials</dt> <dd> <p>Issue the access token from the <code>/oauth2/token</code> endpoint directly to a non-person user using a combination of the client ID and client secret.</p> </dd> </dl>"""
    allowed_scopes: NotRequired[
        "capo_cognito_identity_provider.types.scope_list_type.ScopeListType"
    ]
    """<p>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 <code>aws.cognito.signin.user.admin</code>. Registered app clients can request the OIDC scopes <code>openid</code>, <code>email</code>, <code>phone</code>, and <code>profile</code> 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 <code>aws.cognito/dcr/register</code> scope, even if you include it in this list.</p>"""

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/token endpoint.

client_credentials

Issue the access token from the /oauth2/token endpoint 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/token endpoint.

client_credentials

Issue the access token from the /oauth2/token endpoint directly to a non-person user using a combination of the client ID and client secret.