OAuthFlows

class aws_cdk.aws_cognito.OAuthFlows(*, authorization_code_grant=None, client_credentials=None, implicit_code_grant=None)

Bases: object

__init__(*, authorization_code_grant=None, client_credentials=None, implicit_code_grant=None)

Types of OAuth grant flows.

Parameters
  • authorization_code_grant (Optional[bool]) – Initiate an authorization code grant flow, which provides an authorization code as the response. Default: false

  • client_credentials (Optional[bool]) – Client should get the access token and ID token from the token endpoint using a combination of client and client_secret. Default: false

  • implicit_code_grant (Optional[bool]) – The client should get the access token and ID token directly. Default: false

see :see: - the ‘Allowed OAuth Flows’ section at https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-idp-settings.html stability :stability: experimental

Return type

None

Attributes

authorization_code_grant

Initiate an authorization code grant flow, which provides an authorization code as the response.

default :default: false

stability :stability: experimental

Return type

Optional[bool]

client_credentials

Client should get the access token and ID token from the token endpoint using a combination of client and client_secret.

default :default: false

stability :stability: experimental

Return type

Optional[bool]

implicit_code_grant

The client should get the access token and ID token directly.

default :default: false

stability :stability: experimental

Return type

Optional[bool]