{ "version": "2.0", "metadata": { "apiVersion": "2019-06-10", "endpointPrefix": "oidc", "jsonVersion": "1.1", "protocol": "rest-json", "protocols": [ "rest-json" ], "serviceAbbreviation": "SSO OIDC", "serviceFullName": "AWS SSO OIDC", "serviceId": "SSO OIDC", "signatureVersion": "v4", "signingName": "sso-oauth", "uid": "sso-oidc-2019-06-10" }, "operations": { "CreateToken": { "name": "CreateToken", "http": { "method": "POST", "requestUri": "/token" }, "input": { "shape": "CreateTokenRequest" }, "output": { "shape": "CreateTokenResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "InvalidClientException" }, { "shape": "InvalidGrantException" }, { "shape": "UnauthorizedClientException" }, { "shape": "UnsupportedGrantTypeException" }, { "shape": "InvalidScopeException" }, { "shape": "AuthorizationPendingException" }, { "shape": "SlowDownException" }, { "shape": "AccessDeniedException" }, { "shape": "ExpiredTokenException" }, { "shape": "InternalServerException" } ], "documentation": "
Creates and returns access and refresh tokens for clients that are authenticated using client secrets. The access token can be used to fetch short-term credentials for the assigned AWS accounts or to access application APIs using bearer
authentication.
Creates and returns access and refresh tokens for clients and applications that are authenticated using IAM entities. The access token can be used to fetch short-term credentials for the assigned Amazon Web Services accounts or to access application APIs using bearer
authentication.
Registers a client with IAM Identity Center. This allows clients to initiate device authorization. The output should be persisted for reuse through many authentication requests.
", "authtype": "none" }, "StartDeviceAuthorization": { "name": "StartDeviceAuthorization", "http": { "method": "POST", "requestUri": "/device_authorization" }, "input": { "shape": "StartDeviceAuthorizationRequest" }, "output": { "shape": "StartDeviceAuthorizationResponse" }, "errors": [ { "shape": "InvalidRequestException" }, { "shape": "InvalidClientException" }, { "shape": "UnauthorizedClientException" }, { "shape": "SlowDownException" }, { "shape": "InternalServerException" } ], "documentation": "Initiates device authorization by requesting a pair of verification codes from the authorization service.
", "authtype": "none" } }, "shapes": { "AccessToken": { "type": "string", "sensitive": true }, "ArnType": { "type": "string" }, "Assertion": { "type": "string", "sensitive": true }, "AuthCode": { "type": "string" }, "ClientId": { "type": "string" }, "ClientName": { "type": "string" }, "ClientSecret": { "type": "string", "sensitive": true }, "ClientType": { "type": "string" }, "CodeVerifier": { "type": "string", "sensitive": true }, "CreateTokenRequest": { "type": "structure", "required": [ "clientId", "clientSecret", "grantType" ], "members": { "clientId": { "shape": "ClientId", "documentation": "The unique identifier string for the client or application. This value comes from the result of the RegisterClient API.
" }, "clientSecret": { "shape": "ClientSecret", "documentation": "A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
" }, "grantType": { "shape": "GrantType", "documentation": "Supports the following OAuth grant types: Device Code and Refresh Token. Specify either of the following values, depending on the grant type that you want:
* Device Code - urn:ietf:params:oauth:grant-type:device_code
* Refresh Token - refresh_token
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
" }, "deviceCode": { "shape": "DeviceCode", "documentation": "Used only when calling this API for the Device Code grant type. This short-term code is used to identify this authorization request. This comes from the result of the StartDeviceAuthorization API.
" }, "code": { "shape": "AuthCode", "documentation": "Used only when calling this API for the Authorization Code grant type. The short-term code is used to identify this authorization request. This grant type is currently unsupported for the CreateToken API.
" }, "refreshToken": { "shape": "RefreshToken", "documentation": "Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term tokens, such as the access token, that might expire.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
" }, "scope": { "shape": "Scopes", "documentation": "The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes that are granted. If this value is not specified, IAM Identity Center authorizes all scopes that are configured for the client during the call to RegisterClient.
" }, "redirectUri": { "shape": "URI", "documentation": "Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.
" }, "codeVerifier": { "shape": "CodeVerifier", "documentation": "Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.
" } } }, "CreateTokenResponse": { "type": "structure", "members": { "accessToken": { "shape": "AccessToken", "documentation": "A bearer token to access Amazon Web Services accounts and applications assigned to a user.
" }, "tokenType": { "shape": "TokenType", "documentation": "Used to notify the client that the returned token is an access token. The supported token type is Bearer
.
Indicates the time in seconds when an access token will expire.
" }, "refreshToken": { "shape": "RefreshToken", "documentation": "A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
" }, "idToken": { "shape": "IdToken", "documentation": "The idToken
is not implemented or supported. For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
A JSON Web Token (JWT) that identifies who is associated with the issued access token.
" } } }, "CreateTokenWithIAMRequest": { "type": "structure", "required": [ "clientId", "grantType" ], "members": { "clientId": { "shape": "ClientId", "documentation": "The unique identifier string for the client or application. This value is an application ARN that has OAuth grants configured.
" }, "grantType": { "shape": "GrantType", "documentation": "Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange. Specify one of the following values, depending on the grant type that you want:
* Authorization Code - authorization_code
* Refresh Token - refresh_token
* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
Used only when calling this API for the Authorization Code grant type. This short-term code is used to identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a redirect URI persisted in the Authorization Code GrantOptions for the application.
" }, "refreshToken": { "shape": "RefreshToken", "documentation": "Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term tokens, such as the access token, that might expire.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
" }, "assertion": { "shape": "Assertion", "documentation": "Used only when calling this API for the JWT Bearer grant type. This value specifies the JSON Web Token (JWT) issued by a trusted token issuer. To authorize a trusted token issuer, configure the JWT Bearer GrantOptions for the application.
" }, "scope": { "shape": "Scopes", "documentation": "The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes that are granted. If the value is not specified, IAM Identity Center authorizes all scopes configured for the application, including the following default scopes: openid
, aws
, sts:identity_context
.
Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.
" }, "subjectToken": { "shape": "SubjectToken", "documentation": "Used only when calling this API for the Token Exchange grant type. This value specifies the subject of the exchange. The value of the subject token must be an access token issued by IAM Identity Center to a different client or application. The access token must have authorized scopes that indicate the requested application as a target audience.
" }, "subjectTokenType": { "shape": "TokenTypeURI", "documentation": "Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that is passed as the subject of the exchange. The following value is supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that the requester can receive. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.
" } } }, "CreateTokenWithIAMResponse": { "type": "structure", "members": { "accessToken": { "shape": "AccessToken", "documentation": "A bearer token to access Amazon Web Services accounts and applications assigned to a user.
" }, "tokenType": { "shape": "TokenType", "documentation": "Used to notify the requester that the returned token is an access token. The supported token type is Bearer
.
Indicates the time in seconds when an access token will expire.
" }, "refreshToken": { "shape": "RefreshToken", "documentation": "A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
" }, "idToken": { "shape": "IdToken", "documentation": "A JSON Web Token (JWT) that identifies the user associated with the issued access token.
" }, "issuedTokenType": { "shape": "TokenTypeURI", "documentation": "Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted.
" } } }, "DeviceCode": { "type": "string" }, "ExpirationInSeconds": { "type": "integer" }, "GrantType": { "type": "string" }, "GrantTypes": { "type": "list", "member": { "shape": "GrantType" } }, "IdToken": { "type": "string", "sensitive": true }, "IntervalInSeconds": { "type": "integer" }, "LongTimeStampType": { "type": "long" }, "RedirectUris": { "type": "list", "member": { "shape": "URI" } }, "RefreshToken": { "type": "string", "sensitive": true }, "RegisterClientRequest": { "type": "structure", "required": [ "clientName", "clientType" ], "members": { "clientName": { "shape": "ClientName", "documentation": "The friendly name of the client.
" }, "clientType": { "shape": "ClientType", "documentation": "The type of client. The service supports only public
as a client type. Anything other than public will be rejected by the service.
The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
" }, "redirectUris": { "shape": "RedirectUris", "documentation": "The list of redirect URI that are defined by the client. At completion of authorization, this list is used to restrict what locations the user agent can be redirected back to.
" }, "grantTypes": { "shape": "GrantTypes", "documentation": "The list of OAuth 2.0 grant types that are defined by the client. This list is used to restrict the token granting flows available to the client.
" }, "issuerUrl": { "shape": "URI", "documentation": "The IAM Identity Center Issuer URL associated with an instance of IAM Identity Center. This value is needed for user access to resources through the client.
" }, "entitledApplicationArn": { "shape": "ArnType", "documentation": "This IAM Identity Center application ARN is used to define administrator-managed configuration for public client access to resources. At authorization, the scopes, grants, and redirect URI available to this client will be restricted by this application resource.
" } } }, "RegisterClientResponse": { "type": "structure", "members": { "clientId": { "shape": "ClientId", "documentation": "The unique identifier string for each client. This client uses this identifier to get authenticated by the service in subsequent calls.
" }, "clientSecret": { "shape": "ClientSecret", "documentation": "A secret string generated for the client. The client will use this string to get authenticated by the service in subsequent calls.
" }, "clientIdIssuedAt": { "shape": "LongTimeStampType", "documentation": "Indicates the time at which the clientId
and clientSecret
were issued.
Indicates the time at which the clientId
and clientSecret
will become invalid.
An endpoint that the client can use to request authorization.
" }, "tokenEndpoint": { "shape": "URI", "documentation": "An endpoint that the client can use to create tokens.
" } } }, "Scope": { "type": "string" }, "Scopes": { "type": "list", "member": { "shape": "Scope" } }, "StartDeviceAuthorizationRequest": { "type": "structure", "required": [ "clientId", "clientSecret", "startUrl" ], "members": { "clientId": { "shape": "ClientId", "documentation": "The unique identifier string for the client that is registered with IAM Identity Center. This value should come from the persisted result of the RegisterClient API operation.
" }, "clientSecret": { "shape": "ClientSecret", "documentation": "A secret string that is generated for the client. This value should come from the persisted result of the RegisterClient API operation.
" }, "startUrl": { "shape": "URI", "documentation": "The URL for the Amazon Web Services access portal. For more information, see Using the Amazon Web Services access portal in the IAM Identity Center User Guide.
" } } }, "StartDeviceAuthorizationResponse": { "type": "structure", "members": { "deviceCode": { "shape": "DeviceCode", "documentation": "The short-lived code that is used by the device when polling for a session token.
" }, "userCode": { "shape": "UserCode", "documentation": "A one-time user verification code. This is needed to authorize an in-use device.
" }, "verificationUri": { "shape": "URI", "documentation": "The URI of the verification page that takes the userCode
to authorize the device.
An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
" }, "expiresIn": { "shape": "ExpirationInSeconds", "documentation": "Indicates the number of seconds in which the verification code will become invalid.
" }, "interval": { "shape": "IntervalInSeconds", "documentation": "Indicates the number of seconds the client must wait between attempts when polling for a session.
" } } }, "SubjectToken": { "type": "string", "sensitive": true }, "TokenType": { "type": "string" }, "TokenTypeURI": { "type": "string" }, "URI": { "type": "string" }, "UserCode": { "type": "string" } }, "documentation": "IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a native application) to register with IAM Identity Center. The service also enables the client to fetch the user’s access token upon successful authentication and authorization with IAM Identity Center.
IAM Identity Center uses the sso
and identitystore
API namespaces.
Considerations for Using This Guide
Before you begin using this guide, we recommend that you first review the following important information about how the IAM Identity Center OIDC service works.
The IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0 Device Authorization Grant standard (https://tools.ietf.org/html/rfc8628) that are necessary to enable single sign-on authentication with the CLI.
With older versions of the CLI, the service only emits OIDC access tokens, so to obtain a new token, users must explicitly re-authenticate. To access the OIDC flow that supports token refresh and doesn’t require re-authentication, update to the latest CLI version (1.27.10 for CLI V1 and 2.9.0 for CLI V2) with support for OIDC token refresh and configurable IAM Identity Center session durations. For more information, see Configure Amazon Web Services access portal session duration .
The access tokens provided by this service grant access to all Amazon Web Services account entitlements assigned to an IAM Identity Center user, not just a particular application.
The documentation in this guide does not describe the mechanism to convert the access token into Amazon Web Services Auth (“sigv4”) credentials for use with IAM-protected Amazon Web Services service endpoints. For more information, see GetRoleCredentials in the IAM Identity Center Portal API Reference Guide.
For general information about IAM Identity Center, see What is IAM Identity Center? in the IAM Identity Center User Guide.
" }