@aws-sdk/client-sso-oidc 3.335.0 → 3.338.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SSOOIDCClient = void 0;
3
+ exports.SSOOIDCClient = exports.__Client = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
@@ -10,6 +10,7 @@ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
12
  const smithy_client_1 = require("@aws-sdk/smithy-client");
13
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
13
14
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
14
15
  const runtimeConfig_1 = require("./runtimeConfig");
15
16
  class SSOOIDCClient extends smithy_client_1.Client {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateTokenCommand = void 0;
3
+ exports.CreateTokenCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class CreateTokenCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegisterClientCommand = void 0;
3
+ exports.RegisterClientCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class RegisterClientCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartDeviceAuthorizationCommand = void 0;
3
+ exports.StartDeviceAuthorizationCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class StartDeviceAuthorizationCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
package/dist-cjs/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SSOOIDCServiceException = void 0;
4
4
  const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SSOOIDC"), exports);
6
5
  tslib_1.__exportStar(require("./SSOOIDCClient"), exports);
6
+ tslib_1.__exportStar(require("./SSOOIDC"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
8
  tslib_1.__exportStar(require("./models"), exports);
9
9
  var SSOOIDCServiceException_1 = require("./models/SSOOIDCServiceException");
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SSOOIDCServiceException = void 0;
3
+ exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
5
6
  class SSOOIDCServiceException extends smithy_client_1.ServiceException {
6
7
  constructor(options) {
7
8
  super(options);
@@ -9,6 +9,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
9
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
10
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
11
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ export { __Client };
12
13
  export class SSOOIDCClient extends __Client {
13
14
  constructor(configuration) {
14
15
  const _config_0 = __getRuntimeConfig(configuration);
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class CreateTokenCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_RegisterClientCommand, se_RegisterClientCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class RegisterClientCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_StartDeviceAuthorizationCommand, se_StartDeviceAuthorizationCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class StartDeviceAuthorizationCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
package/dist-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./SSOOIDC";
2
1
  export * from "./SSOOIDCClient";
2
+ export * from "./SSOOIDC";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -1,4 +1,5 @@
1
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
+ export { __ServiceException };
2
3
  export class SSOOIDCServiceException extends __ServiceException {
3
4
  constructor(options) {
4
5
  super(options);
@@ -11,6 +11,7 @@ import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/Cr
11
11
  import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
12
12
  import { StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput } from "./commands/StartDeviceAuthorizationCommand";
13
13
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ export { __Client };
14
15
  /**
15
16
  * @public
16
17
  */
@@ -120,7 +121,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
120
121
  /**
121
122
  * @public
122
123
  */
123
- type SSOOIDCClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
124
+ export type SSOOIDCClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
124
125
  /**
125
126
  * @public
126
127
  *
@@ -131,7 +132,7 @@ export interface SSOOIDCClientConfig extends SSOOIDCClientConfigType {
131
132
  /**
132
133
  * @public
133
134
  */
134
- type SSOOIDCClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
135
+ export type SSOOIDCClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
135
136
  /**
136
137
  * @public
137
138
  *
@@ -195,4 +196,3 @@ export declare class SSOOIDCClient extends __Client<__HttpHandlerOptions, Servic
195
196
  */
196
197
  destroy(): void;
197
198
  }
198
- export {};
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { CreateTokenRequest, CreateTokenResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { RegisterClientRequest, RegisterClientResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { StartDeviceAuthorizationRequest, StartDeviceAuthorizationResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -1,5 +1,49 @@
1
- export * from "./SSOOIDC";
1
+ /**
2
+ * <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
3
+ * or a native application) to register with IAM Identity Center. The service also enables the client to
4
+ * fetch the user’s access token upon successful authentication and authorization with
5
+ * IAM Identity Center.</p>
6
+ * <note>
7
+ * <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and
8
+ * <code>identitystore</code> API namespaces will continue to retain their original name for
9
+ * backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM Identity Center rename</a>.</p>
10
+ * </note>
11
+ * <p>
12
+ * <b>Considerations for Using This Guide</b>
13
+ * </p>
14
+ * <p>Before you begin using this guide, we recommend that you first review the following
15
+ * important information about how the IAM Identity Center OIDC service works.</p>
16
+ * <ul>
17
+ * <li>
18
+ * <p>The IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0
19
+ * 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
20
+ * sign-on authentication with the AWS CLI. Support for other OIDC flows frequently needed
21
+ * for native applications, such as Authorization Code Flow (+ PKCE), will be addressed in
22
+ * future releases.</p>
23
+ * </li>
24
+ * <li>
25
+ * <p>The service emits only OIDC access tokens, such that obtaining a new token (For
26
+ * example, token refresh) requires explicit user re-authentication.</p>
27
+ * </li>
28
+ * <li>
29
+ * <p>The access tokens provided by this service grant access to all AWS account
30
+ * entitlements assigned to an IAM Identity Center user, not just a particular application.</p>
31
+ * </li>
32
+ * <li>
33
+ * <p>The documentation in this guide does not describe the mechanism to convert the access
34
+ * token into AWS Auth (“sigv4”) credentials for use with IAM-protected AWS service
35
+ * endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>IAM Identity Center Portal API Reference
36
+ * Guide</i>.</p>
37
+ * </li>
38
+ * </ul>
39
+ *
40
+ * <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
41
+ * IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
42
+ *
43
+ * @packageDocumentation
44
+ */
2
45
  export * from "./SSOOIDCClient";
46
+ export * from "./SSOOIDC";
3
47
  export * from "./commands";
4
48
  export * from "./models";
5
49
  export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -1,4 +1,5 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ export { __ServiceException, __ServiceExceptionOptions };
2
3
  /**
3
4
  * @public
4
5
  *
@@ -58,6 +58,7 @@ import {
58
58
  ClientResolvedEndpointParameters,
59
59
  EndpointParameters,
60
60
  } from "./endpoint/EndpointParameters";
61
+ export { __Client };
61
62
  export type ServiceInputTypes =
62
63
  | CreateTokenCommandInput
63
64
  | RegisterClientCommandInput
@@ -89,7 +90,7 @@ export interface ClientDefaults
89
90
  logger?: __Logger;
90
91
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
91
92
  }
92
- type SSOOIDCClientConfigType = Partial<
93
+ export type SSOOIDCClientConfigType = Partial<
93
94
  __SmithyConfiguration<__HttpHandlerOptions>
94
95
  > &
95
96
  ClientDefaults &
@@ -100,7 +101,7 @@ type SSOOIDCClientConfigType = Partial<
100
101
  UserAgentInputConfig &
101
102
  ClientInputEndpointParameters;
102
103
  export interface SSOOIDCClientConfig extends SSOOIDCClientConfigType {}
103
- type SSOOIDCClientResolvedConfigType =
104
+ export type SSOOIDCClientResolvedConfigType =
104
105
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
105
106
  Required<ClientDefaults> &
106
107
  RegionResolvedConfig &
@@ -121,4 +122,3 @@ export declare class SSOOIDCClient extends __Client<
121
122
  constructor(configuration: SSOOIDCClientConfig);
122
123
  destroy(): void;
123
124
  }
124
- export {};
@@ -12,6 +12,7 @@ import {
12
12
  ServiceOutputTypes,
13
13
  SSOOIDCClientResolvedConfig,
14
14
  } from "../SSOOIDCClient";
15
+ export { __MetadataBearer, $Command };
15
16
  export interface CreateTokenCommandInput extends CreateTokenRequest {}
16
17
  export interface CreateTokenCommandOutput
17
18
  extends CreateTokenResponse,
@@ -15,6 +15,7 @@ import {
15
15
  ServiceOutputTypes,
16
16
  SSOOIDCClientResolvedConfig,
17
17
  } from "../SSOOIDCClient";
18
+ export { __MetadataBearer, $Command };
18
19
  export interface RegisterClientCommandInput extends RegisterClientRequest {}
19
20
  export interface RegisterClientCommandOutput
20
21
  extends RegisterClientResponse,
@@ -15,6 +15,7 @@ import {
15
15
  ServiceOutputTypes,
16
16
  SSOOIDCClientResolvedConfig,
17
17
  } from "../SSOOIDCClient";
18
+ export { __MetadataBearer, $Command };
18
19
  export interface StartDeviceAuthorizationCommandInput
19
20
  extends StartDeviceAuthorizationRequest {}
20
21
  export interface StartDeviceAuthorizationCommandOutput
@@ -1,5 +1,5 @@
1
- export * from "./SSOOIDC";
2
1
  export * from "./SSOOIDCClient";
2
+ export * from "./SSOOIDC";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -2,6 +2,7 @@ import {
2
2
  ServiceException as __ServiceException,
3
3
  ServiceExceptionOptions as __ServiceExceptionOptions,
4
4
  } from "@aws-sdk/smithy-client";
5
+ export { __ServiceException, __ServiceExceptionOptions };
5
6
  export declare class SSOOIDCServiceException extends __ServiceException {
6
7
  constructor(options: __ServiceExceptionOptions);
7
8
  }
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.335.0",
4
+ "version": "3.338.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",
@@ -21,33 +21,33 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/config-resolver": "3.329.0",
25
- "@aws-sdk/fetch-http-handler": "3.329.0",
26
- "@aws-sdk/hash-node": "3.329.0",
27
- "@aws-sdk/invalid-dependency": "3.329.0",
28
- "@aws-sdk/middleware-content-length": "3.329.0",
29
- "@aws-sdk/middleware-endpoint": "3.329.0",
30
- "@aws-sdk/middleware-host-header": "3.329.0",
31
- "@aws-sdk/middleware-logger": "3.329.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.329.0",
33
- "@aws-sdk/middleware-retry": "3.329.0",
34
- "@aws-sdk/middleware-serde": "3.329.0",
35
- "@aws-sdk/middleware-stack": "3.329.0",
36
- "@aws-sdk/middleware-user-agent": "3.332.0",
37
- "@aws-sdk/node-config-provider": "3.329.0",
38
- "@aws-sdk/node-http-handler": "3.329.0",
39
- "@aws-sdk/smithy-client": "3.329.0",
40
- "@aws-sdk/types": "3.329.0",
41
- "@aws-sdk/url-parser": "3.329.0",
24
+ "@aws-sdk/config-resolver": "3.338.0",
25
+ "@aws-sdk/fetch-http-handler": "3.338.0",
26
+ "@aws-sdk/hash-node": "3.338.0",
27
+ "@aws-sdk/invalid-dependency": "3.338.0",
28
+ "@aws-sdk/middleware-content-length": "3.338.0",
29
+ "@aws-sdk/middleware-endpoint": "3.338.0",
30
+ "@aws-sdk/middleware-host-header": "3.338.0",
31
+ "@aws-sdk/middleware-logger": "3.338.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.338.0",
33
+ "@aws-sdk/middleware-retry": "3.338.0",
34
+ "@aws-sdk/middleware-serde": "3.338.0",
35
+ "@aws-sdk/middleware-stack": "3.338.0",
36
+ "@aws-sdk/middleware-user-agent": "3.338.0",
37
+ "@aws-sdk/node-config-provider": "3.338.0",
38
+ "@aws-sdk/node-http-handler": "3.338.0",
39
+ "@aws-sdk/smithy-client": "3.338.0",
40
+ "@aws-sdk/types": "3.338.0",
41
+ "@aws-sdk/url-parser": "3.338.0",
42
42
  "@aws-sdk/util-base64": "3.310.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.310.0",
44
44
  "@aws-sdk/util-body-length-node": "3.310.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.329.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.329.0",
47
- "@aws-sdk/util-endpoints": "3.332.0",
48
- "@aws-sdk/util-retry": "3.329.0",
49
- "@aws-sdk/util-user-agent-browser": "3.329.0",
50
- "@aws-sdk/util-user-agent-node": "3.329.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.338.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.338.0",
47
+ "@aws-sdk/util-endpoints": "3.338.0",
48
+ "@aws-sdk/util-retry": "3.338.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.338.0",
50
+ "@aws-sdk/util-user-agent-node": "3.338.0",
51
51
  "@aws-sdk/util-utf8": "3.310.0",
52
52
  "@smithy/protocol-http": "^1.0.1",
53
53
  "@smithy/types": "^1.0.0",