@aws-sdk/client-sso-oidc 3.315.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/SSOOIDC.js +7 -42
- package/dist-es/SSOOIDC.js +7 -42
- package/dist-types/SSOOIDC.d.ts +21 -26
- package/dist-types/ts3.4/SSOOIDC.d.ts +2 -1
- package/package.json +4 -4
package/dist-cjs/SSOOIDC.js
CHANGED
|
@@ -1,52 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SSOOIDC = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateTokenCommand_1 = require("./commands/CreateTokenCommand");
|
|
5
6
|
const RegisterClientCommand_1 = require("./commands/RegisterClientCommand");
|
|
6
7
|
const StartDeviceAuthorizationCommand_1 = require("./commands/StartDeviceAuthorizationCommand");
|
|
7
8
|
const SSOOIDCClient_1 = require("./SSOOIDCClient");
|
|
9
|
+
const commands = {
|
|
10
|
+
CreateTokenCommand: CreateTokenCommand_1.CreateTokenCommand,
|
|
11
|
+
RegisterClientCommand: RegisterClientCommand_1.RegisterClientCommand,
|
|
12
|
+
StartDeviceAuthorizationCommand: StartDeviceAuthorizationCommand_1.StartDeviceAuthorizationCommand,
|
|
13
|
+
};
|
|
8
14
|
class SSOOIDC extends SSOOIDCClient_1.SSOOIDCClient {
|
|
9
|
-
createToken(args, optionsOrCb, cb) {
|
|
10
|
-
const command = new CreateTokenCommand_1.CreateTokenCommand(args);
|
|
11
|
-
if (typeof optionsOrCb === "function") {
|
|
12
|
-
this.send(command, optionsOrCb);
|
|
13
|
-
}
|
|
14
|
-
else if (typeof cb === "function") {
|
|
15
|
-
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
17
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return this.send(command, optionsOrCb);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
registerClient(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new RegisterClientCommand_1.RegisterClientCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
startDeviceAuthorization(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new StartDeviceAuthorizationCommand_1.StartDeviceAuthorizationCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
15
|
}
|
|
52
16
|
exports.SSOOIDC = SSOOIDC;
|
|
17
|
+
(0, smithy_client_1.createAggregatedClient)(commands, SSOOIDC);
|
package/dist-es/SSOOIDC.js
CHANGED
|
@@ -1,48 +1,13 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateTokenCommand } from "./commands/CreateTokenCommand";
|
|
2
3
|
import { RegisterClientCommand, } from "./commands/RegisterClientCommand";
|
|
3
4
|
import { StartDeviceAuthorizationCommand, } from "./commands/StartDeviceAuthorizationCommand";
|
|
4
5
|
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
6
|
+
const commands = {
|
|
7
|
+
CreateTokenCommand,
|
|
8
|
+
RegisterClientCommand,
|
|
9
|
+
StartDeviceAuthorizationCommand,
|
|
10
|
+
};
|
|
5
11
|
export class SSOOIDC extends SSOOIDCClient {
|
|
6
|
-
createToken(args, optionsOrCb, cb) {
|
|
7
|
-
const command = new CreateTokenCommand(args);
|
|
8
|
-
if (typeof optionsOrCb === "function") {
|
|
9
|
-
this.send(command, optionsOrCb);
|
|
10
|
-
}
|
|
11
|
-
else if (typeof cb === "function") {
|
|
12
|
-
if (typeof optionsOrCb !== "object")
|
|
13
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
14
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
registerClient(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new RegisterClientCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
startDeviceAuthorization(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new StartDeviceAuthorizationCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
12
|
}
|
|
13
|
+
createAggregatedClient(commands, SSOOIDC);
|
package/dist-types/SSOOIDC.d.ts
CHANGED
|
@@ -3,6 +3,26 @@ import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/Cr
|
|
|
3
3
|
import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
|
|
4
4
|
import { StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput } from "./commands/StartDeviceAuthorizationCommand";
|
|
5
5
|
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
6
|
+
export interface SSOOIDC {
|
|
7
|
+
/**
|
|
8
|
+
* @see {@link CreateTokenCommand}
|
|
9
|
+
*/
|
|
10
|
+
createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
|
|
11
|
+
createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
12
|
+
createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link RegisterClientCommand}
|
|
15
|
+
*/
|
|
16
|
+
registerClient(args: RegisterClientCommandInput, options?: __HttpHandlerOptions): Promise<RegisterClientCommandOutput>;
|
|
17
|
+
registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
|
|
18
|
+
registerClient(args: RegisterClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link StartDeviceAuthorizationCommand}
|
|
21
|
+
*/
|
|
22
|
+
startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<StartDeviceAuthorizationCommandOutput>;
|
|
23
|
+
startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
|
|
24
|
+
startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
|
|
25
|
+
}
|
|
6
26
|
/**
|
|
7
27
|
* @public
|
|
8
28
|
* <p>AWS IAM Identity Center (successor to AWS Single Sign-On) OpenID Connect (OIDC) is a web service that enables a client (such as AWS CLI
|
|
@@ -46,30 +66,5 @@ import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
|
46
66
|
* <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
|
|
47
67
|
* IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
|
|
48
68
|
*/
|
|
49
|
-
export declare class SSOOIDC extends SSOOIDCClient {
|
|
50
|
-
/**
|
|
51
|
-
* @public
|
|
52
|
-
* <p>Creates and returns an access token for the authorized client. The access token issued
|
|
53
|
-
* will be used to fetch short-term credentials for the assigned roles in the AWS
|
|
54
|
-
* account.</p>
|
|
55
|
-
*/
|
|
56
|
-
createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
|
|
57
|
-
createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
58
|
-
createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
59
|
-
/**
|
|
60
|
-
* @public
|
|
61
|
-
* <p>Registers a client with IAM Identity Center. This allows clients to initiate device authorization.
|
|
62
|
-
* The output should be persisted for reuse through many authentication requests.</p>
|
|
63
|
-
*/
|
|
64
|
-
registerClient(args: RegisterClientCommandInput, options?: __HttpHandlerOptions): Promise<RegisterClientCommandOutput>;
|
|
65
|
-
registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
|
|
66
|
-
registerClient(args: RegisterClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
|
|
67
|
-
/**
|
|
68
|
-
* @public
|
|
69
|
-
* <p>Initiates device authorization by requesting a pair of verification codes from the
|
|
70
|
-
* authorization service.</p>
|
|
71
|
-
*/
|
|
72
|
-
startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<StartDeviceAuthorizationCommandOutput>;
|
|
73
|
-
startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
|
|
74
|
-
startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
|
|
69
|
+
export declare class SSOOIDC extends SSOOIDCClient implements SSOOIDC {
|
|
75
70
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
StartDeviceAuthorizationCommandOutput,
|
|
13
13
|
} from "./commands/StartDeviceAuthorizationCommand";
|
|
14
14
|
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
15
|
-
export
|
|
15
|
+
export interface SSOOIDC {
|
|
16
16
|
createToken(
|
|
17
17
|
args: CreateTokenCommandInput,
|
|
18
18
|
options?: __HttpHandlerOptions
|
|
@@ -53,3 +53,4 @@ export declare class SSOOIDC extends SSOOIDCClient {
|
|
|
53
53
|
cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
|
|
54
54
|
): void;
|
|
55
55
|
}
|
|
56
|
+
export declare class SSOOIDC extends SSOOIDCClient implements SSOOIDC {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
41
41
|
"@aws-sdk/types": "3.310.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.310.0",
|
|
43
43
|
"@aws-sdk/util-base64": "3.310.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
48
48
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-retry": "3.310.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|