Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).
The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.
Class: AWS.SSOOIDC
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.SSOOIDC
- Identifier:
- ssooidc
- API Version:
- 2019-06-10
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS Single Sign-On (SSO) OpenID Connect (OIDC) is a web service that enables a client (such as AWS CLI or a native application) to register with AWS SSO. The service also enables the client to fetch the user’s access token upon successful authentication and authorization with AWS SSO. This service conforms with the OAuth 2.0 based implementation of the device authorization grant standard (https://tools.ietf.org/html/rfc8628).
For general information about AWS SSO, see What is AWS Single Sign-On? in the AWS SSO User Guide.
This API reference guide describes the AWS SSO OIDC operations that you can call programatically and includes detailed information on data types and errors.
Sending a Request Using SSOOIDC
var ssooidc = new AWS.SSOOIDC();
ssooidc.createToken(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the SSOOIDC object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var ssooidc = new AWS.SSOOIDC({apiVersion: '2019-06-10'});
You can also set the API version globally in AWS.config.apiVersions
using
the ssooidc service identifier:
AWS.config.apiVersions = {
ssooidc: '2019-06-10',
// other service API versions
};
var ssooidc = new AWS.SSOOIDC();
Constructor Summary
-
new AWS.SSOOIDC(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
createToken(params = {}, callback) ⇒ AWS.Request
Creates and returns an access token for the authorized client.
-
registerClient(params = {}, callback) ⇒ AWS.Request
Registers a client with AWS SSO.
-
startDeviceAuthorization(params = {}, callback) ⇒ AWS.Request
Initiates device authorization by requesting a pair of verification codes from the authorization service.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
Property Details
Method Details
createToken(params = {}, callback) ⇒ AWS.Request
Creates and returns an access token for the authorized client. The access token issued will be used to fetch short-term credentials for the assigned roles in the AWS account.