Gathering detailed insights and metrics for @aws-sdk/client-sso-oidc
Gathering detailed insights and metrics for @aws-sdk/client-sso-oidc
Gathering detailed insights and metrics for @aws-sdk/client-sso-oidc
Gathering detailed insights and metrics for @aws-sdk/client-sso-oidc
@trivikr-test/client-sso-oidc
AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native
@trivikr-test/client-sso-oidc-esm
AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native
@trivikr-test/client-sso-oidc-esm-wrapper
AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native
Modularized AWS SDK for JavaScript.
npm install @aws-sdk/client-sso-oidc
Typescript
Module System
Min. Node Version
Node Version
NPM Version
88.9
Supply Chain
100
Quality
96.6
Maintenance
100
Vulnerability
99.6
License
TypeScript (99.65%)
Java (0.23%)
JavaScript (0.1%)
Gherkin (0.01%)
Total Downloads
1,208,888,690
Last Day
415,124
Last Week
10,674,276
Last Month
45,578,434
Last Year
764,024,179
Apache-2.0 License
3,351 Stars
9,551 Commits
619 Forks
42 Watchers
12 Branches
167 Contributors
Updated on Jul 06, 2025
Minified
Minified + Gzipped
Latest Version
3.840.0
Package Id
@aws-sdk/client-sso-oidc@3.840.0
Unpacked Size
287.71 kB
Size
44.71 kB
File Count
80
NPM Version
10.9.2
Node Version
18.20.6
Published on
Jun 30, 2025
Cumulative downloads
Total Downloads
39
6
AWS SDK for JavaScript SSOOIDC Client for Node.js, Browser and React Native.
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.
API namespaces
IAM Identity Center uses the sso
and identitystore
API namespaces. IAM Identity Center
OpenID Connect uses the sso-oidc
namespace.
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.
To install this package, simply type add or install @aws-sdk/client-sso-oidc using your favorite package manager:
npm install @aws-sdk/client-sso-oidc
yarn add @aws-sdk/client-sso-oidc
pnpm add @aws-sdk/client-sso-oidc
The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the SSOOIDCClient
and
the commands you need, for example CreateTokenCommand
:
1// ES5 example 2const { SSOOIDCClient, CreateTokenCommand } = require("@aws-sdk/client-sso-oidc");
1// ES6+ example 2import { SSOOIDCClient, CreateTokenCommand } from "@aws-sdk/client-sso-oidc";
To send a request, you:
send
operation on client with command object as input.destroy()
to close open connections.1// a client can be shared by different commands. 2const client = new SSOOIDCClient({ region: "REGION" }); 3 4const params = { 5 /** input parameters */ 6}; 7const command = new CreateTokenCommand(params);
We recommend using await operator to wait for the promise returned by send operation as follows:
1// async/await. 2try { 3 const data = await client.send(command); 4 // process data. 5} catch (error) { 6 // error handling. 7} finally { 8 // finally. 9}
Async-await is clean, concise, intuitive, easy to debug and has better error handling as compared to using Promise chains or callbacks.
You can also use Promise chaining to execute send operation.
1client.send(command).then( 2 (data) => { 3 // process data. 4 }, 5 (error) => { 6 // error handling. 7 } 8);
Promises can also be called using .catch()
and .finally()
as follows:
1client 2 .send(command) 3 .then((data) => { 4 // process data. 5 }) 6 .catch((error) => { 7 // error handling. 8 }) 9 .finally(() => { 10 // finally. 11 });
We do not recommend using callbacks because of callback hell, but they are supported by the send operation.
1// callbacks. 2client.send(command, (err, data) => { 3 // process err and data. 4});
The client can also send requests using v2 compatible style. However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post on modular packages in AWS SDK for JavaScript
1import * as AWS from "@aws-sdk/client-sso-oidc"; 2const client = new AWS.SSOOIDC({ region: "REGION" }); 3 4// async/await. 5try { 6 const data = await client.createToken(params); 7 // process data. 8} catch (error) { 9 // error handling. 10} 11 12// Promises. 13client 14 .createToken(params) 15 .then((data) => { 16 // process data. 17 }) 18 .catch((error) => { 19 // error handling. 20 }); 21 22// callbacks. 23client.createToken(params, (err, data) => { 24 // process err and data. 25});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
1try { 2 const data = await client.send(command); 3 // process data. 4} catch (error) { 5 const { requestId, cfId, extendedRequestId } = error.$metadata; 6 console.log({ requestId, cfId, extendedRequestId }); 7 /** 8 * The keys within exceptions are also parsed. 9 * You can access them by specifying exception names: 10 * if (error.name === 'SomeServiceException') { 11 * const value = error.specialKeyInException; 12 * } 13 */ 14}
Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js
.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-sso-oidc
package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
binaries present in source code
Details
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-1.5%
415,124
Compared to previous day
Last Week
-4%
10,674,276
Compared to previous week
Last Month
-8.3%
45,578,434
Compared to previous month
Last Year
123.8%
764,024,179
Compared to previous year