Skip to content

Commit 92d5486

Browse files
author
AWS
committed
AWS SSO OIDC Update: Updated request parameters for PKCE support.
1 parent 3a79c73 commit 92d5486

File tree

2 files changed

+66
-4
lines changed

2 files changed

+66
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SSO OIDC",
4+
"contributor": "",
5+
"description": "Updated request parameters for PKCE support."
6+
}

services/ssooidc/src/main/resources/codegen-resources/service-2.json

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endpointPrefix":"oidc",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceAbbreviation":"SSO OIDC",
910
"serviceFullName":"AWS SSO OIDC",
1011
"serviceId":"SSO OIDC",
@@ -59,7 +60,7 @@
5960
{"shape":"InternalServerException"},
6061
{"shape":"InvalidRequestRegionException"}
6162
],
62-
"documentation":"<p>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 AWS accounts or to access application APIs using <code>bearer</code> authentication.</p>"
63+
"documentation":"<p>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 <code>bearer</code> authentication.</p>"
6364
},
6465
"RegisterClient":{
6566
"name":"RegisterClient",
@@ -73,7 +74,9 @@
7374
{"shape":"InvalidRequestException"},
7475
{"shape":"InvalidScopeException"},
7576
{"shape":"InvalidClientMetadataException"},
76-
{"shape":"InternalServerException"}
77+
{"shape":"InternalServerException"},
78+
{"shape":"InvalidRedirectUriException"},
79+
{"shape":"UnsupportedGrantTypeException"}
7780
],
7881
"documentation":"<p>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.</p>",
7982
"authtype":"none"
@@ -118,6 +121,7 @@
118121
"type":"string",
119122
"sensitive":true
120123
},
124+
"ArnType":{"type":"string"},
121125
"Assertion":{
122126
"type":"string",
123127
"sensitive":true
@@ -146,6 +150,10 @@
146150
"sensitive":true
147151
},
148152
"ClientType":{"type":"string"},
153+
"CodeVerifier":{
154+
"type":"string",
155+
"sensitive":true
156+
},
149157
"CreateTokenRequest":{
150158
"type":"structure",
151159
"required":[
@@ -185,6 +193,10 @@
185193
"redirectUri":{
186194
"shape":"URI",
187195
"documentation":"<p>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.</p>"
196+
},
197+
"codeVerifier":{
198+
"shape":"CodeVerifier",
199+
"documentation":"<p>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.</p>"
188200
}
189201
}
190202
},
@@ -193,7 +205,7 @@
193205
"members":{
194206
"accessToken":{
195207
"shape":"AccessToken",
196-
"documentation":"<p>A bearer token to access AWS accounts and applications assigned to a user.</p>"
208+
"documentation":"<p>A bearer token to access Amazon Web Services accounts and applications assigned to a user.</p>"
197209
},
198210
"tokenType":{
199211
"shape":"TokenType",
@@ -259,6 +271,10 @@
259271
"requestedTokenType":{
260272
"shape":"TokenTypeURI",
261273
"documentation":"<p>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:</p> <p>* Access Token - <code>urn:ietf:params:oauth:token-type:access_token</code> </p> <p>* Refresh Token - <code>urn:ietf:params:oauth:token-type:refresh_token</code> </p>"
274+
},
275+
"codeVerifier":{
276+
"shape":"CodeVerifier",
277+
"documentation":"<p>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.</p>"
262278
}
263279
}
264280
},
@@ -267,7 +283,7 @@
267283
"members":{
268284
"accessToken":{
269285
"shape":"AccessToken",
270-
"documentation":"<p>A bearer token to access AWS accounts and applications assigned to a user.</p>"
286+
"documentation":"<p>A bearer token to access Amazon Web Services accounts and applications assigned to a user.</p>"
271287
},
272288
"tokenType":{
273289
"shape":"TokenType",
@@ -316,6 +332,10 @@
316332
"exception":true
317333
},
318334
"GrantType":{"type":"string"},
335+
"GrantTypes":{
336+
"type":"list",
337+
"member":{"shape":"GrantType"}
338+
},
319339
"IdToken":{
320340
"type":"string",
321341
"sensitive":true
@@ -386,6 +406,22 @@
386406
"error":{"httpStatusCode":400},
387407
"exception":true
388408
},
409+
"InvalidRedirectUriException":{
410+
"type":"structure",
411+
"members":{
412+
"error":{
413+
"shape":"Error",
414+
"documentation":"<p>Single error code. For this exception the value will be <code>invalid_redirect_uri</code>.</p>"
415+
},
416+
"error_description":{
417+
"shape":"ErrorDescription",
418+
"documentation":"<p>Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.</p>"
419+
}
420+
},
421+
"documentation":"<p>Indicates that one or more redirect URI in the request is not supported for this operation.</p>",
422+
"error":{"httpStatusCode":400},
423+
"exception":true
424+
},
389425
"InvalidRequestException":{
390426
"type":"structure",
391427
"members":{
@@ -444,6 +480,10 @@
444480
},
445481
"Location":{"type":"string"},
446482
"LongTimeStampType":{"type":"long"},
483+
"RedirectUris":{
484+
"type":"list",
485+
"member":{"shape":"URI"}
486+
},
447487
"RefreshToken":{
448488
"type":"string",
449489
"sensitive":true
@@ -467,6 +507,22 @@
467507
"scopes":{
468508
"shape":"Scopes",
469509
"documentation":"<p>The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.</p>"
510+
},
511+
"redirectUris":{
512+
"shape":"RedirectUris",
513+
"documentation":"<p>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.</p>"
514+
},
515+
"grantTypes":{
516+
"shape":"GrantTypes",
517+
"documentation":"<p>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.</p>"
518+
},
519+
"issuerUrl":{
520+
"shape":"URI",
521+
"documentation":"<p>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.</p>"
522+
},
523+
"entitledApplicationArn":{
524+
"shape":"ArnType",
525+
"documentation":"<p>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.</p>"
470526
}
471527
}
472528
},

0 commit comments

Comments
 (0)