{ "smithy": "2.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.ssooidc#AWSSSOOIDCService": { "type": "service", "version": "2019-06-10", "operations": [ { "target": "com.amazonaws.ssooidc#CreateToken" }, { "target": "com.amazonaws.ssooidc#CreateTokenWithIAM" }, { "target": "com.amazonaws.ssooidc#RegisterClient" }, { "target": "com.amazonaws.ssooidc#StartDeviceAuthorization" } ], "traits": { "aws.api#service": { "sdkId": "SSO OIDC", "arnNamespace": "sso-oauth", "cloudFormationName": "SSOOIDC", "cloudTrailEventSource": "ssooidc.amazonaws.com", "endpointPrefix": "oidc" }, "aws.auth#sigv4": { "name": "sso-oauth" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "
IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a\n native application) to register with IAM Identity Center. The service also enables the client to fetch the\n user\u2019s access token upon successful authentication and authorization with IAM Identity Center.
\n\n API namespaces\n
\nIAM Identity Center uses the sso and identitystore API namespaces. IAM Identity Center\n OpenID Connect uses the sso-oauth namespace.
\n Considerations for using this guide\n
\nBefore you begin using this guide, we recommend that you first review the following\n important information about how the IAM Identity Center OIDC service works.
\nThe IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0 Device\n Authorization Grant standard (https://tools.ietf.org/html/rfc8628) that are necessary to enable single\n sign-on authentication with the CLI.
\nWith older versions of the CLI, the service only emits OIDC access tokens, so to\n obtain a new token, users must explicitly re-authenticate. To access the OIDC flow that\n supports token refresh and doesn\u2019t require re-authentication, update to the latest CLI\n version (1.27.10 for CLI V1 and 2.9.0 for CLI V2) with support for OIDC token refresh\n and configurable IAM Identity Center session durations. For more information, see Configure Amazon Web Services access portal session duration .
\nThe access tokens provided by this service grant access to all Amazon Web Services account\n entitlements assigned to an IAM Identity Center user, not just a particular application.
\nThe documentation in this guide does not describe the mechanism to convert the access\n token into Amazon Web Services Auth (\u201csigv4\u201d) credentials for use with IAM-protected Amazon Web Services service\n endpoints. For more information, see GetRoleCredentials in the IAM Identity Center Portal API Reference\n Guide.
\nFor general information about IAM Identity Center, see What is\n IAM Identity Center? in the IAM Identity Center User Guide.
", "smithy.api#title": "AWS SSO OIDC", "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] }, { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws-us-gov" ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://oidc.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://oidc.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 14, "nodes": "/////wAAAAH/////AAAAAAAAAA0AAAADAAAAAQAAAAQF9eEMAAAAAgAAAAUF9eEMAAAAAwAAAAgAAAAGAAAABAAAAAcF9eELAAAABQX14QkF9eEKAAAABAAAAAsAAAAJAAAABgAAAAoF9eEIAAAABwX14QYF9eEHAAAABQAAAAwF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAAOAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [ { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws-us-gov" ] } ], "endpoint": { "url": "https://oidc.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "endpoint": { "url": "https://oidc.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-east-1.amazonaws.com" } }, "params": { "Region": "ap-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-northeast-1.amazonaws.com" } }, "params": { "Region": "ap-northeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-northeast-2.amazonaws.com" } }, "params": { "Region": "ap-northeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-northeast-3.amazonaws.com" } }, "params": { "Region": "ap-northeast-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-south-1.amazonaws.com" } }, "params": { "Region": "ap-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-southeast-1.amazonaws.com" } }, "params": { "Region": "ap-southeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ap-southeast-2.amazonaws.com" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.eu-central-1.amazonaws.com" } }, "params": { "Region": "eu-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.eu-north-1.amazonaws.com" } }, "params": { "Region": "eu-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.eu-south-1.amazonaws.com" } }, "params": { "Region": "eu-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.eu-west-1.amazonaws.com" } }, "params": { "Region": "eu-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.eu-west-2.amazonaws.com" } }, "params": { "Region": "eu-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.eu-west-3.amazonaws.com" } }, "params": { "Region": "eu-west-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.me-south-1.amazonaws.com" } }, "params": { "Region": "me-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.sa-east-1.amazonaws.com" } }, "params": { "Region": "sa-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://oidc-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://oidc.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://oidc-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://oidc.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://oidc-fips.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://oidc.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://oidc.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.ssooidc#AccessDeniedException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be access_denied.
A string that uniquely identifies a reason for the error.
" } }, "error_description": { "target": "com.amazonaws.ssooidc#ErrorDescription", "traits": { "smithy.api#documentation": "Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "You do not have sufficient access to perform this action.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#AccessDeniedExceptionReason": { "type": "enum", "members": { "KMS_ACCESS_DENIED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "KMS_AccessDeniedException" } } } }, "com.amazonaws.ssooidc#AccessToken": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#ArnType": { "type": "string" }, "com.amazonaws.ssooidc#Assertion": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#AuthCode": { "type": "string" }, "com.amazonaws.ssooidc#AuthorizationPendingException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be\n authorization_pending.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that a request to authorize a client with an access user session token is\n pending.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#AwsAdditionalDetails": { "type": "structure", "members": { "identityContext": { "target": "com.amazonaws.ssooidc#IdentityContext", "traits": { "smithy.api#documentation": "The trusted context assertion is signed and encrypted by STS. It provides access to\n sts:identity_context claim in the idToken without JWT\n parsing
Identity context comprises information that Amazon Web Services services use to make authorization\n decisions when they receive requests.
" } } }, "traits": { "smithy.api#documentation": "This structure contains Amazon Web Services-specific parameter extensions and the identity context.
" } }, "com.amazonaws.ssooidc#ClientId": { "type": "string" }, "com.amazonaws.ssooidc#ClientName": { "type": "string" }, "com.amazonaws.ssooidc#ClientSecret": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#ClientType": { "type": "string" }, "com.amazonaws.ssooidc#CodeVerifier": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#CreateToken": { "type": "operation", "input": { "target": "com.amazonaws.ssooidc#CreateTokenRequest" }, "output": { "target": "com.amazonaws.ssooidc#CreateTokenResponse" }, "errors": [ { "target": "com.amazonaws.ssooidc#AccessDeniedException" }, { "target": "com.amazonaws.ssooidc#AuthorizationPendingException" }, { "target": "com.amazonaws.ssooidc#ExpiredTokenException" }, { "target": "com.amazonaws.ssooidc#InternalServerException" }, { "target": "com.amazonaws.ssooidc#InvalidClientException" }, { "target": "com.amazonaws.ssooidc#InvalidGrantException" }, { "target": "com.amazonaws.ssooidc#InvalidRequestException" }, { "target": "com.amazonaws.ssooidc#InvalidScopeException" }, { "target": "com.amazonaws.ssooidc#SlowDownException" }, { "target": "com.amazonaws.ssooidc#UnauthorizedClientException" }, { "target": "com.amazonaws.ssooidc#UnsupportedGrantTypeException" } ], "traits": { "smithy.api#auth": [], "smithy.api#documentation": "Creates and returns access and refresh tokens for clients that are authenticated using\n client secrets. The access token can be used to fetch short-lived credentials for the assigned\n AWS accounts or to access application APIs using bearer authentication.
The unique identifier string for the client or application. This value comes from the\n result of the RegisterClient API.
", "smithy.api#required": {} } }, "clientSecret": { "target": "com.amazonaws.ssooidc#ClientSecret", "traits": { "smithy.api#documentation": "A secret string generated for the client. This value should come from the persisted result\n of the RegisterClient API.
", "smithy.api#required": {} } }, "grantType": { "target": "com.amazonaws.ssooidc#GrantType", "traits": { "smithy.api#documentation": "Supports the following OAuth grant types: Authorization Code, Device Code, and Refresh\n Token. Specify one of the following values, depending on the grant type that you want:
\n* Authorization Code - authorization_code\n
* Device Code - urn:ietf:params:oauth:grant-type:device_code\n
* Refresh Token - refresh_token\n
Used only when calling this API for the Device Code grant type. This short-lived code is\n used to identify this authorization request. This comes from the result of the StartDeviceAuthorization API.
" } }, "code": { "target": "com.amazonaws.ssooidc#AuthCode", "traits": { "smithy.api#documentation": "Used only when calling this API for the Authorization Code grant type. The short-lived\n code is used to identify this authorization request.
" } }, "refreshToken": { "target": "com.amazonaws.ssooidc#RefreshToken", "traits": { "smithy.api#documentation": "Used only when calling this API for the Refresh Token grant type. This token is used to\n refresh short-lived tokens, such as the access token, that might expire.
\nFor more information about the features and limitations of the current IAM Identity Center OIDC\n implementation, see Considerations for Using this Guide in the IAM Identity Center\n OIDC API Reference.
" } }, "scope": { "target": "com.amazonaws.ssooidc#Scopes", "traits": { "smithy.api#documentation": "The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.
" } }, "redirectUri": { "target": "com.amazonaws.ssooidc#URI", "traits": { "smithy.api#documentation": "Used only when calling this API for the Authorization Code grant type. This value\n specifies the location of the client or application that has registered to receive the\n authorization code.
" } }, "codeVerifier": { "target": "com.amazonaws.ssooidc#CodeVerifier", "traits": { "smithy.api#documentation": "Used only when calling this API for the Authorization Code grant type. This value is\n generated by the client and presented to validate the original code challenge value the client\n passed at authorization time.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.ssooidc#CreateTokenResponse": { "type": "structure", "members": { "accessToken": { "target": "com.amazonaws.ssooidc#AccessToken", "traits": { "smithy.api#documentation": "A bearer token to access Amazon Web Services accounts and applications assigned to a user.
" } }, "tokenType": { "target": "com.amazonaws.ssooidc#TokenType", "traits": { "smithy.api#documentation": "Used to notify the client that the returned token is an access token. The supported token\n type is Bearer.
Indicates the time in seconds when an access token will expire.
" } }, "refreshToken": { "target": "com.amazonaws.ssooidc#RefreshToken", "traits": { "smithy.api#documentation": "A token that, if present, can be used to refresh a previously issued access token that\n might have expired.
\nFor more information about the features and limitations of the current IAM Identity Center OIDC\n implementation, see Considerations for Using this Guide in the IAM Identity Center\n OIDC API Reference.
" } }, "idToken": { "target": "com.amazonaws.ssooidc#IdToken", "traits": { "smithy.api#documentation": "The idToken is not implemented or supported. For more information about the\n features and limitations of the current IAM Identity Center OIDC implementation, see\n Considerations for Using this Guide in the IAM Identity Center\n OIDC API Reference.
A JSON Web Token (JWT) that identifies who is associated with the issued access token.\n
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.ssooidc#CreateTokenWithIAM": { "type": "operation", "input": { "target": "com.amazonaws.ssooidc#CreateTokenWithIAMRequest" }, "output": { "target": "com.amazonaws.ssooidc#CreateTokenWithIAMResponse" }, "errors": [ { "target": "com.amazonaws.ssooidc#AccessDeniedException" }, { "target": "com.amazonaws.ssooidc#AuthorizationPendingException" }, { "target": "com.amazonaws.ssooidc#ExpiredTokenException" }, { "target": "com.amazonaws.ssooidc#InternalServerException" }, { "target": "com.amazonaws.ssooidc#InvalidClientException" }, { "target": "com.amazonaws.ssooidc#InvalidGrantException" }, { "target": "com.amazonaws.ssooidc#InvalidRequestException" }, { "target": "com.amazonaws.ssooidc#InvalidRequestRegionException" }, { "target": "com.amazonaws.ssooidc#InvalidScopeException" }, { "target": "com.amazonaws.ssooidc#SlowDownException" }, { "target": "com.amazonaws.ssooidc#UnauthorizedClientException" }, { "target": "com.amazonaws.ssooidc#UnsupportedGrantTypeException" } ], "traits": { "smithy.api#documentation": "Creates and returns access and refresh tokens for authorized client applications that are\n authenticated using any IAM entity, such as a service\n role or user. These tokens might contain defined scopes that specify permissions such as read:profile or write:data. Through downscoping, you can use the scopes parameter to request tokens with reduced permissions compared to the original client application's permissions or, if applicable, the refresh token's scopes. The access token can be used to fetch short-lived credentials for the assigned\n Amazon Web Services accounts or to access application APIs using bearer authentication.
This API is used with Signature Version 4. For more information, see Amazon Web Services Signature\n Version 4 for API Requests.
\nThe unique identifier string for the client or application. This value is an application\n ARN that has OAuth grants configured.
", "smithy.api#required": {} } }, "grantType": { "target": "com.amazonaws.ssooidc#GrantType", "traits": { "smithy.api#documentation": "Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer,\n and Token Exchange. Specify one of the following values, depending on the grant type that you\n want:
\n* Authorization Code - authorization_code\n
* Refresh Token - refresh_token\n
* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer\n
* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange\n
Used only when calling this API for the Authorization Code grant type. This short-lived\n code is used to identify this authorization request. The code is obtained through a redirect\n from IAM Identity Center to a redirect URI persisted in the Authorization Code GrantOptions for the\n application.
" } }, "refreshToken": { "target": "com.amazonaws.ssooidc#RefreshToken", "traits": { "smithy.api#documentation": "Used only when calling this API for the Refresh Token grant type. This token is used to\n refresh short-lived tokens, such as the access token, that might expire.
\nFor more information about the features and limitations of the current IAM Identity Center OIDC\n implementation, see Considerations for Using this Guide in the IAM Identity Center\n OIDC API Reference.
" } }, "assertion": { "target": "com.amazonaws.ssooidc#Assertion", "traits": { "smithy.api#documentation": "Used only when calling this API for the JWT Bearer grant type. This value specifies the\n JSON Web Token (JWT) issued by a trusted token issuer. To authorize a trusted token issuer,\n configure the JWT Bearer GrantOptions for the application.
" } }, "scope": { "target": "com.amazonaws.ssooidc#Scopes", "traits": { "smithy.api#documentation": "The list of scopes for which authorization is requested. The access token that is issued\n is limited to the scopes that are granted. If the value is not specified, IAM Identity Center authorizes all\n scopes configured for the application, including the following default scopes:\n openid, aws, sts:identity_context.
Used only when calling this API for the Authorization Code grant type. This value\n specifies the location of the client or application that has registered to receive the\n authorization code.
" } }, "subjectToken": { "target": "com.amazonaws.ssooidc#SubjectToken", "traits": { "smithy.api#documentation": "Used only when calling this API for the Token Exchange grant type. This value specifies\n the subject of the exchange. The value of the subject token must be an access token issued by\n IAM Identity Center to a different client or application. The access token must have authorized scopes that\n indicate the requested application as a target audience.
" } }, "subjectTokenType": { "target": "com.amazonaws.ssooidc#TokenTypeURI", "traits": { "smithy.api#documentation": "Used only when calling this API for the Token Exchange grant type. This value specifies\n the type of token that is passed as the subject of the exchange. The following value is\n supported:
\n* Access Token - urn:ietf:params:oauth:token-type:access_token\n
Used only when calling this API for the Token Exchange grant type. This value specifies\n the type of token that the requester can receive. The following values are supported:
\n* Access Token - urn:ietf:params:oauth:token-type:access_token\n
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token\n
Used only when calling this API for the Authorization Code grant type. This value is\n generated by the client and presented to validate the original code challenge value the client\n passed at authorization time.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.ssooidc#CreateTokenWithIAMResponse": { "type": "structure", "members": { "accessToken": { "target": "com.amazonaws.ssooidc#AccessToken", "traits": { "smithy.api#documentation": "A bearer token to access Amazon Web Services accounts and applications assigned to a user.
" } }, "tokenType": { "target": "com.amazonaws.ssooidc#TokenType", "traits": { "smithy.api#documentation": "Used to notify the requester that the returned token is an access token. The supported\n token type is Bearer.
Indicates the time in seconds when an access token will expire.
" } }, "refreshToken": { "target": "com.amazonaws.ssooidc#RefreshToken", "traits": { "smithy.api#documentation": "A token that, if present, can be used to refresh a previously issued access token that\n might have expired.
\nFor more information about the features and limitations of the current IAM Identity Center OIDC\n implementation, see Considerations for Using this Guide in the IAM Identity Center\n OIDC API Reference.
" } }, "idToken": { "target": "com.amazonaws.ssooidc#IdToken", "traits": { "smithy.api#documentation": "A JSON Web Token (JWT) that identifies the user associated with the issued access token.\n
" } }, "issuedTokenType": { "target": "com.amazonaws.ssooidc#TokenTypeURI", "traits": { "smithy.api#documentation": "Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
\n* Access Token - urn:ietf:params:oauth:token-type:access_token\n
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token\n
The list of scopes for which authorization is granted. The access token that is issued is\n limited to the scopes that are granted.
" } }, "awsAdditionalDetails": { "target": "com.amazonaws.ssooidc#AwsAdditionalDetails", "traits": { "smithy.api#documentation": "A structure containing information from IAM Identity Center managed user and group\n information.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.ssooidc#DeviceCode": { "type": "string" }, "com.amazonaws.ssooidc#Error": { "type": "string" }, "com.amazonaws.ssooidc#ErrorDescription": { "type": "string" }, "com.amazonaws.ssooidc#ExpirationInSeconds": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.ssooidc#ExpiredTokenException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be expired_token.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the token issued by the service is expired and is no longer valid.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#GrantType": { "type": "string" }, "com.amazonaws.ssooidc#GrantTypes": { "type": "list", "member": { "target": "com.amazonaws.ssooidc#GrantType" } }, "com.amazonaws.ssooidc#IdToken": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#IdentityContext": { "type": "string" }, "com.amazonaws.ssooidc#InternalServerException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be server_error.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that an error from the service occurred while trying to process a\n request.
", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.ssooidc#IntervalInSeconds": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.ssooidc#InvalidClientException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be\n invalid_client.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the clientId or clientSecret in the request is\n invalid. For example, this can occur when a client sends an incorrect clientId or\n an expired clientSecret.
Single error code. For this exception the value will be\n invalid_client_metadata.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the client information sent in the request during registration is\n invalid.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#InvalidGrantException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be invalid_grant.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that a request contains an invalid grant. This can occur if a client makes a\n CreateToken request with an invalid grant type.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#InvalidRedirectUriException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be\n invalid_redirect_uri.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that one or more redirect URI in the request is not supported for this\n operation.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#InvalidRequestException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be\n invalid_request.
A string that uniquely identifies a reason for the error.
" } }, "error_description": { "target": "com.amazonaws.ssooidc#ErrorDescription", "traits": { "smithy.api#documentation": "Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that something is wrong with the input to the request. For example, a required\n parameter might be missing or out of range.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#InvalidRequestExceptionReason": { "type": "enum", "members": { "KMS_KEY_NOT_FOUND": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "KMS_NotFoundException" } }, "KMS_INVALID_KEY_USAGE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "KMS_InvalidKeyUsageException" } }, "KMS_INVALID_STATE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "KMS_InvalidStateException" } }, "KMS_DISABLED_KEY": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "KMS_DisabledException" } } } }, "com.amazonaws.ssooidc#InvalidRequestRegionException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be\n invalid_request.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } }, "endpoint": { "target": "com.amazonaws.ssooidc#Location", "traits": { "smithy.api#documentation": "Indicates the IAM Identity Center endpoint which the requester may call with this token.
" } }, "region": { "target": "com.amazonaws.ssooidc#Region", "traits": { "smithy.api#documentation": "Indicates the region which the requester may call with this token.
" } } }, "traits": { "smithy.api#documentation": "Indicates that a token provided as input to the request was issued by and is only usable\n by calling IAM Identity Center endpoints in another region.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#InvalidScopeException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be invalid_scope.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the scope provided in the request is invalid.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#Location": { "type": "string" }, "com.amazonaws.ssooidc#LongTimeStampType": { "type": "long", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.ssooidc#RedirectUris": { "type": "list", "member": { "target": "com.amazonaws.ssooidc#URI" } }, "com.amazonaws.ssooidc#RefreshToken": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#Region": { "type": "string" }, "com.amazonaws.ssooidc#RegisterClient": { "type": "operation", "input": { "target": "com.amazonaws.ssooidc#RegisterClientRequest" }, "output": { "target": "com.amazonaws.ssooidc#RegisterClientResponse" }, "errors": [ { "target": "com.amazonaws.ssooidc#InternalServerException" }, { "target": "com.amazonaws.ssooidc#InvalidClientMetadataException" }, { "target": "com.amazonaws.ssooidc#InvalidRedirectUriException" }, { "target": "com.amazonaws.ssooidc#InvalidRequestException" }, { "target": "com.amazonaws.ssooidc#InvalidScopeException" }, { "target": "com.amazonaws.ssooidc#SlowDownException" }, { "target": "com.amazonaws.ssooidc#UnsupportedGrantTypeException" } ], "traits": { "smithy.api#auth": [], "smithy.api#documentation": "Registers a public\u00a0client with IAM Identity Center. This allows clients to\u00a0perform authorization using\n the\u00a0authorization code\u00a0grant\u00a0with Proof Key for Code Exchange (PKCE) or\u00a0the\u00a0device\n code\u00a0grant.
", "smithy.api#examples": [ { "title": "Call OAuth/OIDC /register-client endpoint", "documentation": "", "input": { "clientName": "My IDE Plugin", "clientType": "public", "scopes": [ "sso:account:access", "codewhisperer:completions" ], "redirectUris": [ "127.0.0.1:PORT/oauth/callback" ], "grantTypes": [ "authorization_code", "refresh_token" ], "issuerUrl": "https://identitycenter.amazonaws.com/ssoins-1111111111111111", "entitledApplicationArn": "arn:aws:sso::ACCOUNTID:application/ssoins-1111111111111111/apl-1111111111111111" }, "output": { "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID", "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0", "clientIdIssuedAt": 1579725929, "clientSecretExpiresAt": 1587584729 } } ], "smithy.api#http": { "method": "POST", "uri": "/client/register", "code": 200 }, "smithy.api#optionalAuth": {} } }, "com.amazonaws.ssooidc#RegisterClientRequest": { "type": "structure", "members": { "clientName": { "target": "com.amazonaws.ssooidc#ClientName", "traits": { "smithy.api#documentation": "The friendly name of the client.
", "smithy.api#required": {} } }, "clientType": { "target": "com.amazonaws.ssooidc#ClientType", "traits": { "smithy.api#documentation": "The type of client. The service supports only public as a client type.\n 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\n to restrict permissions when granting an access token.
" } }, "redirectUris": { "target": "com.amazonaws.ssooidc#RedirectUris", "traits": { "smithy.api#documentation": "The list of redirect URI that are defined by the client. At completion of authorization,\n this list is used to restrict what locations the user agent can be redirected back to.
" } }, "grantTypes": { "target": "com.amazonaws.ssooidc#GrantTypes", "traits": { "smithy.api#documentation": "The list of OAuth 2.0 grant types that are defined by the client. This list is used to\n restrict the token granting flows available to the client. Supports the following OAuth 2.0\n grant types: Authorization Code, Device Code, and Refresh Token.
\n* Authorization Code - authorization_code\n
* Device Code - urn:ietf:params:oauth:grant-type:device_code\n
* Refresh Token - refresh_token\n
The IAM Identity Center Issuer URL associated with an instance of IAM Identity Center. This value is needed for user\n access to resources through the client.
" } }, "entitledApplicationArn": { "target": "com.amazonaws.ssooidc#ArnType", "traits": { "smithy.api#documentation": "This IAM Identity Center application ARN is used to define administrator-managed configuration for\n public client access to resources. At authorization, the scopes, grants, and redirect URI\n available to this client will be restricted by this application resource.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.ssooidc#RegisterClientResponse": { "type": "structure", "members": { "clientId": { "target": "com.amazonaws.ssooidc#ClientId", "traits": { "smithy.api#documentation": "The unique identifier string for each client. This client uses this identifier to get\n authenticated by the service in subsequent calls.
" } }, "clientSecret": { "target": "com.amazonaws.ssooidc#ClientSecret", "traits": { "smithy.api#documentation": "A secret string generated for the client. The client will use this string to get\n authenticated by the service in subsequent calls.
" } }, "clientIdIssuedAt": { "target": "com.amazonaws.ssooidc#LongTimeStampType", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "Indicates the time at which the clientId and clientSecret were\n issued.
Indicates the time at which the clientId and clientSecret will\n become invalid.
An endpoint that the client can use to request authorization.
" } }, "tokenEndpoint": { "target": "com.amazonaws.ssooidc#URI", "traits": { "smithy.api#documentation": "An endpoint that the client can use to create tokens.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.ssooidc#Scope": { "type": "string" }, "com.amazonaws.ssooidc#Scopes": { "type": "list", "member": { "target": "com.amazonaws.ssooidc#Scope" } }, "com.amazonaws.ssooidc#SlowDownException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be slow_down.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the client is making the request too frequently and is more than the\n service can handle.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#StartDeviceAuthorization": { "type": "operation", "input": { "target": "com.amazonaws.ssooidc#StartDeviceAuthorizationRequest" }, "output": { "target": "com.amazonaws.ssooidc#StartDeviceAuthorizationResponse" }, "errors": [ { "target": "com.amazonaws.ssooidc#InternalServerException" }, { "target": "com.amazonaws.ssooidc#InvalidClientException" }, { "target": "com.amazonaws.ssooidc#InvalidRequestException" }, { "target": "com.amazonaws.ssooidc#SlowDownException" }, { "target": "com.amazonaws.ssooidc#UnauthorizedClientException" } ], "traits": { "smithy.api#auth": [], "smithy.api#documentation": "Initiates device authorization by requesting a pair of verification codes from the\n authorization service.
", "smithy.api#examples": [ { "title": "Call OAuth/OIDC /start-device-authorization endpoint", "documentation": "", "input": { "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID", "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0", "startUrl": "https://identitycenter.amazonaws.com/ssoins-111111111111" }, "output": { "deviceCode": "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE", "userCode": "makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE", "verificationUri": "https://directory-alias-example.awsapps.com/start/#/device", "verificationUriComplete": "https://directory-alias-example.awsapps.com/start/#/device?user_code=makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE", "expiresIn": 1579729529, "interval": 1 } } ], "smithy.api#http": { "method": "POST", "uri": "/device_authorization", "code": 200 }, "smithy.api#optionalAuth": {} } }, "com.amazonaws.ssooidc#StartDeviceAuthorizationRequest": { "type": "structure", "members": { "clientId": { "target": "com.amazonaws.ssooidc#ClientId", "traits": { "smithy.api#documentation": "The unique identifier string for the client that is registered with IAM Identity Center. This value\n should come from the persisted result of the RegisterClient API\n operation.
", "smithy.api#required": {} } }, "clientSecret": { "target": "com.amazonaws.ssooidc#ClientSecret", "traits": { "smithy.api#documentation": "A secret string that is generated for the client. This value should come from the\n persisted result of the RegisterClient API operation.
", "smithy.api#required": {} } }, "startUrl": { "target": "com.amazonaws.ssooidc#URI", "traits": { "smithy.api#documentation": "The URL for the Amazon Web Services access portal. For more information, see Using\n the Amazon Web Services access portal in the IAM Identity Center User Guide.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.ssooidc#StartDeviceAuthorizationResponse": { "type": "structure", "members": { "deviceCode": { "target": "com.amazonaws.ssooidc#DeviceCode", "traits": { "smithy.api#documentation": "The short-lived code that is used by the device when polling for a session token.
" } }, "userCode": { "target": "com.amazonaws.ssooidc#UserCode", "traits": { "smithy.api#documentation": "A one-time user verification code. This is needed to authorize an in-use device.
" } }, "verificationUri": { "target": "com.amazonaws.ssooidc#URI", "traits": { "smithy.api#documentation": "The URI of the verification page that takes the userCode to authorize the\n device.
An alternate URL that the client can use to automatically launch a browser. This process\n skips the manual step in which the user visits the verification page and enters their\n code.
" } }, "expiresIn": { "target": "com.amazonaws.ssooidc#ExpirationInSeconds", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "Indicates the number of seconds in which the verification code will become invalid.
" } }, "interval": { "target": "com.amazonaws.ssooidc#IntervalInSeconds", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "Indicates the number of seconds the client must wait between attempts when polling for a\n session.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.ssooidc#SubjectToken": { "type": "string", "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.ssooidc#TokenType": { "type": "string" }, "com.amazonaws.ssooidc#TokenTypeURI": { "type": "string" }, "com.amazonaws.ssooidc#URI": { "type": "string" }, "com.amazonaws.ssooidc#UnauthorizedClientException": { "type": "structure", "members": { "error": { "target": "com.amazonaws.ssooidc#Error", "traits": { "smithy.api#documentation": "Single error code. For this exception the value will be\n unauthorized_client.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the client is not currently authorized to make the request. This can happen\n when a clientId is not issued for a public client.
Single error code. For this exception the value will be\n unsupported_grant_type.
Human-readable text providing additional information, used to assist the client developer\n in understanding the error that occurred.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the grant type in the request is not supported by the service.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ssooidc#UserCode": { "type": "string" } } }