SSOAdmin / Client / get_application_grant

get_application_grant#

SSOAdmin.Client.get_application_grant(**kwargs)#

Retrieves details about an application grant.

See also: AWS API Documentation

Request Syntax

response = client.get_application_grant(
    ApplicationArn='string',
    GrantType='authorization_code'|'refresh_token'|'urn:ietf:params:oauth:grant-type:jwt-bearer'|'urn:ietf:params:oauth:grant-type:token-exchange'
)
Parameters:
  • ApplicationArn (string) –

    [REQUIRED]

    Specifies the ARN of the application that contains the grant.

  • GrantType (string) –

    [REQUIRED]

    Specifies the type of grant.

Return type:

dict

Returns:

Response Syntax

{
    'Grant': {
        'AuthorizationCode': {
            'RedirectUris': [
                'string',
            ]
        },
        'JwtBearer': {
            'AuthorizedTokenIssuers': [
                {
                    'AuthorizedAudiences': [
                        'string',
                    ],
                    'TrustedTokenIssuerArn': 'string'
                },
            ]
        }
    }
}

Response Structure

  • (dict) –

    • Grant (dict) –

      A structure that describes the requested grant.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: AuthorizationCode, JwtBearer. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • AuthorizationCode (dict) –

        ~~~[ TODO: ADD DESCRIPTION HERE ]~~~

        • RedirectUris (list) –

          ~~~[ TODO: ADD DESCRIPTION HERE ]~~~

          • (string) –

      • JwtBearer (dict) –

        ~~~[ TODO: ADD DESCRIPTION HERE ]~~~

        • AuthorizedTokenIssuers (list) –

          ~~~[ TODO: ADD DESCRIPTION HERE ]~~~

          • (dict) –

            A structure that describes a trusted token issuer and associates it with a set of authorized audiences.

            • AuthorizedAudiences (list) –

              An array list of authorized audiences, or applications, that can consume the tokens generated by the associated trusted token issuer.

              • (string) –

            • TrustedTokenIssuerArn (string) –

              The ARN of the trusted token issuer.

Exceptions

  • SSOAdmin.Client.exceptions.ThrottlingException

  • SSOAdmin.Client.exceptions.InternalServerException

  • SSOAdmin.Client.exceptions.ResourceNotFoundException

  • SSOAdmin.Client.exceptions.AccessDeniedException

  • SSOAdmin.Client.exceptions.ValidationException