Skip to content

Commit ab82210

Browse files
author
awstools
committed
feat(client-sso-oidc): Updated required request parameters on IAM Identity Center's OIDC CreateToken action.
1 parent e045457 commit ab82210

File tree

8 files changed

+101
-204
lines changed

8 files changed

+101
-204
lines changed

clients/client-sso-oidc/README.md

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,24 @@
99

1010
AWS SDK for JavaScript SSOOIDC Client for Node.js, Browser and React Native.
1111

12-
<p>Amazon Web Services Single Sign On OpenID Connect (OIDC) is a web service that enables a client (such as Amazon Web Services CLI
13-
or a native application) to register with Amazon Web Services SSO. The service also enables the client to
14-
fetch the user’s access token upon successful authentication and authorization with
15-
Amazon Web Services SSO.</p>
12+
<p>AWS Single Sign-On (SSO) OpenID Connect (OIDC) is a web service that enables a client
13+
(such as AWS CLI or a native application) to register with AWS SSO. The service also
14+
enables the client to fetch the user’s access token upon successful authentication and
15+
authorization with AWS SSO. This service conforms with the OAuth 2.0 based implementation of
16+
the device authorization grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>).</p>
17+
18+
<p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
19+
Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
20+
21+
<p>This API reference guide describes the AWS SSO OIDC operations that you can call
22+
programatically and includes detailed information on data types and errors.</p>
23+
1624
<note>
17-
<p>Although Amazon Web Services Single Sign-On was renamed, the <code>sso</code> and
18-
<code>identitystore</code> API namespaces will continue to retain their original name for
19-
backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">Amazon Web Services SSO rename</a>.</p>
25+
<p>AWS provides SDKs that consist of libraries and sample code for various programming
26+
languages and platforms such as Java, Ruby, .Net, iOS, and Android. The SDKs provide a
27+
convenient way to create programmatic access to AWS SSO and other AWS services. For more
28+
information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
2029
</note>
21-
<p>
22-
<b>Considerations for Using This Guide</b>
23-
</p>
24-
<p>Before you begin using this guide, we recommend that you first review the following
25-
important information about how the Amazon Web Services SSO OIDC service works.</p>
26-
<ul>
27-
<li>
28-
<p>The Amazon Web Services SSO OIDC service currently implements only the portions of the OAuth 2.0
29-
Device Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
30-
sign-on authentication with the AWS CLI. Support for other OIDC flows frequently needed
31-
for native applications, such as Authorization Code Flow (+ PKCE), will be addressed in
32-
future releases.</p>
33-
</li>
34-
<li>
35-
<p>The service emits only OIDC access tokens, such that obtaining a new token (For
36-
example, token refresh) requires explicit user re-authentication.</p>
37-
</li>
38-
<li>
39-
<p>The access tokens provided by this service grant access to all AWS account
40-
entitlements assigned to an Amazon Web Services SSO user, not just a particular application.</p>
41-
</li>
42-
<li>
43-
<p>The documentation in this guide does not describe the mechanism to convert the access
44-
token into AWS Auth (“sigv4”) credentials for use with IAM-protected AWS service
45-
endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>Amazon Web Services SSO Portal API Reference
46-
Guide</i>.</p>
47-
</li>
48-
</ul>
49-
50-
<p>For general information about Amazon Web Services SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
51-
Amazon Web Services SSO?</a> in the <i>Amazon Web Services SSO User Guide</i>.</p>
5230

5331
## Installing
5432

clients/client-sso-oidc/src/SSOOIDC.ts

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,29 @@ import {
1515
import { SSOOIDCClient } from "./SSOOIDCClient";
1616

1717
/**
18-
* <p>Amazon Web Services Single Sign On OpenID Connect (OIDC) is a web service that enables a client (such as Amazon Web Services CLI
19-
* or a native application) to register with Amazon Web Services SSO. The service also enables the client to
20-
* fetch the user’s access token upon successful authentication and authorization with
21-
* Amazon Web Services SSO.</p>
18+
* <p>AWS Single Sign-On (SSO) OpenID Connect (OIDC) is a web service that enables a client
19+
* (such as AWS CLI or a native application) to register with AWS SSO. The service also
20+
* enables the client to fetch the user’s access token upon successful authentication and
21+
* authorization with AWS SSO. This service conforms with the OAuth 2.0 based implementation of
22+
* the device authorization grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>).</p>
23+
*
24+
* <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
25+
* Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
26+
*
27+
* <p>This API reference guide describes the AWS SSO OIDC operations that you can call
28+
* programatically and includes detailed information on data types and errors.</p>
29+
*
2230
* <note>
23-
* <p>Although Amazon Web Services Single Sign-On was renamed, the <code>sso</code> and
24-
* <code>identitystore</code> API namespaces will continue to retain their original name for
25-
* backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">Amazon Web Services SSO rename</a>.</p>
31+
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
32+
* languages and platforms such as Java, Ruby, .Net, iOS, and Android. The SDKs provide a
33+
* convenient way to create programmatic access to AWS SSO and other AWS services. For more
34+
* information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
2635
* </note>
27-
* <p>
28-
* <b>Considerations for Using This Guide</b>
29-
* </p>
30-
* <p>Before you begin using this guide, we recommend that you first review the following
31-
* important information about how the Amazon Web Services SSO OIDC service works.</p>
32-
* <ul>
33-
* <li>
34-
* <p>The Amazon Web Services SSO OIDC service currently implements only the portions of the OAuth 2.0
35-
* Device Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
36-
* sign-on authentication with the AWS CLI. Support for other OIDC flows frequently needed
37-
* for native applications, such as Authorization Code Flow (+ PKCE), will be addressed in
38-
* future releases.</p>
39-
* </li>
40-
* <li>
41-
* <p>The service emits only OIDC access tokens, such that obtaining a new token (For
42-
* example, token refresh) requires explicit user re-authentication.</p>
43-
* </li>
44-
* <li>
45-
* <p>The access tokens provided by this service grant access to all AWS account
46-
* entitlements assigned to an Amazon Web Services SSO user, not just a particular application.</p>
47-
* </li>
48-
* <li>
49-
* <p>The documentation in this guide does not describe the mechanism to convert the access
50-
* token into AWS Auth (“sigv4”) credentials for use with IAM-protected AWS service
51-
* endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>Amazon Web Services SSO Portal API Reference
52-
* Guide</i>.</p>
53-
* </li>
54-
* </ul>
55-
*
56-
* <p>For general information about Amazon Web Services SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
57-
* Amazon Web Services SSO?</a> in the <i>Amazon Web Services SSO User Guide</i>.</p>
5836
*/
5937
export class SSOOIDC extends SSOOIDCClient {
6038
/**
6139
* <p>Creates and returns an access token for the authorized client. The access token issued
62-
* will be used to fetch short-term credentials for the assigned roles in the Amazon Web Services
40+
* will be used to fetch short-term credentials for the assigned roles in the AWS
6341
* account.</p>
6442
*/
6543
public createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
@@ -86,7 +64,7 @@ export class SSOOIDC extends SSOOIDCClient {
8664
}
8765

8866
/**
89-
* <p>Registers a client with Amazon Web Services SSO. This allows clients to initiate device authorization.
67+
* <p>Registers a client with AWS SSO. This allows clients to initiate device authorization.
9068
* The output should be persisted for reuse through many authentication requests.</p>
9169
*/
9270
public registerClient(
@@ -119,8 +97,7 @@ export class SSOOIDC extends SSOOIDCClient {
11997
}
12098

12199
/**
122-
* <p>Initiates device authorization by requesting a pair of verification codes from the
123-
* authorization service.</p>
100+
* <p>Initiates device authorization by requesting a pair of verification codes from the authorization service.</p>
124101
*/
125102
public startDeviceAuthorization(
126103
args: StartDeviceAuthorizationCommandInput,

clients/client-sso-oidc/src/SSOOIDCClient.ts

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -210,46 +210,24 @@ type SSOOIDCClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandl
210210
export interface SSOOIDCClientResolvedConfig extends SSOOIDCClientResolvedConfigType {}
211211

212212
/**
213-
* <p>Amazon Web Services Single Sign On OpenID Connect (OIDC) is a web service that enables a client (such as Amazon Web Services CLI
214-
* or a native application) to register with Amazon Web Services SSO. The service also enables the client to
215-
* fetch the user’s access token upon successful authentication and authorization with
216-
* Amazon Web Services SSO.</p>
213+
* <p>AWS Single Sign-On (SSO) OpenID Connect (OIDC) is a web service that enables a client
214+
* (such as AWS CLI or a native application) to register with AWS SSO. The service also
215+
* enables the client to fetch the user’s access token upon successful authentication and
216+
* authorization with AWS SSO. This service conforms with the OAuth 2.0 based implementation of
217+
* the device authorization grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>).</p>
218+
*
219+
* <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
220+
* Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
221+
*
222+
* <p>This API reference guide describes the AWS SSO OIDC operations that you can call
223+
* programatically and includes detailed information on data types and errors.</p>
224+
*
217225
* <note>
218-
* <p>Although Amazon Web Services Single Sign-On was renamed, the <code>sso</code> and
219-
* <code>identitystore</code> API namespaces will continue to retain their original name for
220-
* backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">Amazon Web Services SSO rename</a>.</p>
226+
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
227+
* languages and platforms such as Java, Ruby, .Net, iOS, and Android. The SDKs provide a
228+
* convenient way to create programmatic access to AWS SSO and other AWS services. For more
229+
* information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
221230
* </note>
222-
* <p>
223-
* <b>Considerations for Using This Guide</b>
224-
* </p>
225-
* <p>Before you begin using this guide, we recommend that you first review the following
226-
* important information about how the Amazon Web Services SSO OIDC service works.</p>
227-
* <ul>
228-
* <li>
229-
* <p>The Amazon Web Services SSO OIDC service currently implements only the portions of the OAuth 2.0
230-
* Device Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
231-
* sign-on authentication with the AWS CLI. Support for other OIDC flows frequently needed
232-
* for native applications, such as Authorization Code Flow (+ PKCE), will be addressed in
233-
* future releases.</p>
234-
* </li>
235-
* <li>
236-
* <p>The service emits only OIDC access tokens, such that obtaining a new token (For
237-
* example, token refresh) requires explicit user re-authentication.</p>
238-
* </li>
239-
* <li>
240-
* <p>The access tokens provided by this service grant access to all AWS account
241-
* entitlements assigned to an Amazon Web Services SSO user, not just a particular application.</p>
242-
* </li>
243-
* <li>
244-
* <p>The documentation in this guide does not describe the mechanism to convert the access
245-
* token into AWS Auth (“sigv4”) credentials for use with IAM-protected AWS service
246-
* endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>Amazon Web Services SSO Portal API Reference
247-
* Guide</i>.</p>
248-
* </li>
249-
* </ul>
250-
*
251-
* <p>For general information about Amazon Web Services SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
252-
* Amazon Web Services SSO?</a> in the <i>Amazon Web Services SSO User Guide</i>.</p>
253231
*/
254232
export class SSOOIDCClient extends __Client<
255233
__HttpHandlerOptions,

clients/client-sso-oidc/src/commands/CreateTokenCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface CreateTokenCommandOutput extends CreateTokenResponse, __Metadat
2929

3030
/**
3131
* <p>Creates and returns an access token for the authorized client. The access token issued
32-
* will be used to fetch short-term credentials for the assigned roles in the Amazon Web Services
32+
* will be used to fetch short-term credentials for the assigned roles in the AWS
3333
* account.</p>
3434
* @example
3535
* Use a bare-bones client and the command you need to make an API call.

clients/client-sso-oidc/src/commands/RegisterClientCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface RegisterClientCommandInput extends RegisterClientRequest {}
2828
export interface RegisterClientCommandOutput extends RegisterClientResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Registers a client with Amazon Web Services SSO. This allows clients to initiate device authorization.
31+
* <p>Registers a client with AWS SSO. This allows clients to initiate device authorization.
3232
* The output should be persisted for reuse through many authentication requests.</p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.

clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export interface StartDeviceAuthorizationCommandInput extends StartDeviceAuthori
2828
export interface StartDeviceAuthorizationCommandOutput extends StartDeviceAuthorizationResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Initiates device authorization by requesting a pair of verification codes from the
32-
* authorization service.</p>
31+
* <p>Initiates device authorization by requesting a pair of verification codes from the authorization service.</p>
3332
* @example
3433
* Use a bare-bones client and the command you need to make an API call.
3534
* ```javascript

0 commit comments

Comments
 (0)