@depup/aws-sdk__client-sso-oidc 3.1010.0-depup.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.
Files changed (87) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/changes.json +42 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +69 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  6. package/dist-cjs/endpoint/ruleset.js +7 -0
  7. package/dist-cjs/index.js +214 -0
  8. package/dist-cjs/models/SSOOIDCServiceException.js +12 -0
  9. package/dist-cjs/models/errors.js +250 -0
  10. package/dist-cjs/runtimeConfig.browser.js +38 -0
  11. package/dist-cjs/runtimeConfig.js +53 -0
  12. package/dist-cjs/runtimeConfig.native.js +15 -0
  13. package/dist-cjs/runtimeConfig.shared.js +49 -0
  14. package/dist-cjs/schemas/schemas_0.js +246 -0
  15. package/dist-es/SSOOIDC.js +15 -0
  16. package/dist-es/SSOOIDCClient.js +50 -0
  17. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  18. package/dist-es/auth/httpAuthSchemeProvider.js +63 -0
  19. package/dist-es/commands/CreateTokenCommand.js +16 -0
  20. package/dist-es/commands/CreateTokenWithIAMCommand.js +16 -0
  21. package/dist-es/commands/RegisterClientCommand.js +16 -0
  22. package/dist-es/commands/StartDeviceAuthorizationCommand.js +16 -0
  23. package/dist-es/commands/index.js +4 -0
  24. package/dist-es/endpoint/EndpointParameters.js +13 -0
  25. package/dist-es/endpoint/endpointResolver.js +14 -0
  26. package/dist-es/endpoint/ruleset.js +4 -0
  27. package/dist-es/extensionConfiguration.js +1 -0
  28. package/dist-es/index.js +8 -0
  29. package/dist-es/models/SSOOIDCServiceException.js +8 -0
  30. package/dist-es/models/enums.js +9 -0
  31. package/dist-es/models/errors.js +233 -0
  32. package/dist-es/models/models_0.js +1 -0
  33. package/dist-es/runtimeConfig.browser.js +33 -0
  34. package/dist-es/runtimeConfig.js +48 -0
  35. package/dist-es/runtimeConfig.native.js +11 -0
  36. package/dist-es/runtimeConfig.shared.js +45 -0
  37. package/dist-es/runtimeExtensions.js +9 -0
  38. package/dist-es/schemas/schemas_0.js +243 -0
  39. package/dist-types/SSOOIDC.d.ts +76 -0
  40. package/dist-types/SSOOIDCClient.d.ts +229 -0
  41. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  42. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  43. package/dist-types/commands/CreateTokenCommand.d.ts +176 -0
  44. package/dist-types/commands/CreateTokenWithIAMCommand.d.ts +272 -0
  45. package/dist-types/commands/RegisterClientCommand.d.ts +151 -0
  46. package/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +125 -0
  47. package/dist-types/commands/index.d.ts +4 -0
  48. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  49. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  50. package/dist-types/endpoint/ruleset.d.ts +2 -0
  51. package/dist-types/extensionConfiguration.d.ts +9 -0
  52. package/dist-types/index.d.ts +54 -0
  53. package/dist-types/models/SSOOIDCServiceException.d.ts +14 -0
  54. package/dist-types/models/enums.d.ts +25 -0
  55. package/dist-types/models/errors.d.ts +364 -0
  56. package/dist-types/models/models_0.d.ts +436 -0
  57. package/dist-types/runtimeConfig.browser.d.ts +63 -0
  58. package/dist-types/runtimeConfig.d.ts +63 -0
  59. package/dist-types/runtimeConfig.native.d.ts +62 -0
  60. package/dist-types/runtimeConfig.shared.d.ts +38 -0
  61. package/dist-types/runtimeExtensions.d.ts +17 -0
  62. package/dist-types/schemas/schemas_0.d.ts +36 -0
  63. package/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
  64. package/dist-types/ts3.4/SSOOIDCClient.d.ts +143 -0
  65. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  66. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  67. package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +50 -0
  70. package/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +51 -0
  71. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  72. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  73. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  74. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  75. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  76. package/dist-types/ts3.4/index.d.ts +11 -0
  77. package/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +9 -0
  78. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  79. package/dist-types/ts3.4/models/errors.d.ts +134 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +74 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +125 -0
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +120 -0
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +129 -0
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +58 -0
  85. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  86. package/dist-types/ts3.4/schemas/schemas_0.d.ts +35 -0
  87. package/package.json +159 -0
@@ -0,0 +1,151 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { RegisterClientRequest, RegisterClientResponse } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link RegisterClientCommand}.
14
+ */
15
+ export interface RegisterClientCommandInput extends RegisterClientRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RegisterClientCommand}.
21
+ */
22
+ export interface RegisterClientCommandOutput extends RegisterClientResponse, __MetadataBearer {
23
+ }
24
+ declare const RegisterClientCommand_base: {
25
+ new (input: RegisterClientCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterClientCommandInput, RegisterClientCommandOutput, SSOOIDCClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: RegisterClientCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterClientCommandInput, RegisterClientCommandOutput, SSOOIDCClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Registers a public client with IAM Identity Center. This allows clients to perform authorization using
31
+ * the authorization code grant with Proof Key for Code Exchange (PKCE) or the device
32
+ * code grant.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { SSOOIDCClient, RegisterClientCommand } from "@aws-sdk/client-sso-oidc"; // ES Modules import
37
+ * // const { SSOOIDCClient, RegisterClientCommand } = require("@aws-sdk/client-sso-oidc"); // CommonJS import
38
+ * // import type { SSOOIDCClientConfig } from "@aws-sdk/client-sso-oidc";
39
+ * const config = {}; // type is SSOOIDCClientConfig
40
+ * const client = new SSOOIDCClient(config);
41
+ * const input = { // RegisterClientRequest
42
+ * clientName: "STRING_VALUE", // required
43
+ * clientType: "STRING_VALUE", // required
44
+ * scopes: [ // Scopes
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * redirectUris: [ // RedirectUris
48
+ * "STRING_VALUE",
49
+ * ],
50
+ * grantTypes: [ // GrantTypes
51
+ * "STRING_VALUE",
52
+ * ],
53
+ * issuerUrl: "STRING_VALUE",
54
+ * entitledApplicationArn: "STRING_VALUE",
55
+ * };
56
+ * const command = new RegisterClientCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // RegisterClientResponse
59
+ * // clientId: "STRING_VALUE",
60
+ * // clientSecret: "STRING_VALUE",
61
+ * // clientIdIssuedAt: Number("long"),
62
+ * // clientSecretExpiresAt: Number("long"),
63
+ * // authorizationEndpoint: "STRING_VALUE",
64
+ * // tokenEndpoint: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param RegisterClientCommandInput - {@link RegisterClientCommandInput}
70
+ * @returns {@link RegisterClientCommandOutput}
71
+ * @see {@link RegisterClientCommandInput} for command's `input` shape.
72
+ * @see {@link RegisterClientCommandOutput} for command's `response` shape.
73
+ * @see {@link SSOOIDCClientResolvedConfig | config} for SSOOIDCClient's `config` shape.
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>Indicates that an error from the service occurred while trying to process a
77
+ * request.</p>
78
+ *
79
+ * @throws {@link InvalidClientMetadataException} (client fault)
80
+ * <p>Indicates that the client information sent in the request during registration is
81
+ * invalid.</p>
82
+ *
83
+ * @throws {@link InvalidRedirectUriException} (client fault)
84
+ * <p>Indicates that one or more redirect URI in the request is not supported for this
85
+ * operation.</p>
86
+ *
87
+ * @throws {@link InvalidRequestException} (client fault)
88
+ * <p>Indicates that something is wrong with the input to the request. For example, a required
89
+ * parameter might be missing or out of range.</p>
90
+ *
91
+ * @throws {@link InvalidScopeException} (client fault)
92
+ * <p>Indicates that the scope provided in the request is invalid.</p>
93
+ *
94
+ * @throws {@link SlowDownException} (client fault)
95
+ * <p>Indicates that the client is making the request too frequently and is more than the
96
+ * service can handle. </p>
97
+ *
98
+ * @throws {@link UnsupportedGrantTypeException} (client fault)
99
+ * <p>Indicates that the grant type in the request is not supported by the service.</p>
100
+ *
101
+ * @throws {@link SSOOIDCServiceException}
102
+ * <p>Base exception class for all service exceptions from SSOOIDC service.</p>
103
+ *
104
+ *
105
+ * @example Call OAuth/OIDC /register-client endpoint
106
+ * ```javascript
107
+ * //
108
+ * const input = {
109
+ * clientName: "My IDE Plugin",
110
+ * clientType: "public",
111
+ * entitledApplicationArn: "arn:aws:sso::ACCOUNTID:application/ssoins-1111111111111111/apl-1111111111111111",
112
+ * grantTypes: [
113
+ * "authorization_code",
114
+ * "refresh_token"
115
+ * ],
116
+ * issuerUrl: "https://identitycenter.amazonaws.com/ssoins-1111111111111111",
117
+ * redirectUris: [
118
+ * "127.0.0.1:PORT/oauth/callback"
119
+ * ],
120
+ * scopes: [
121
+ * "sso:account:access",
122
+ * "codewhisperer:completions"
123
+ * ]
124
+ * };
125
+ * const command = new RegisterClientCommand(input);
126
+ * const response = await client.send(command);
127
+ * /* response is
128
+ * {
129
+ * clientId: "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
130
+ * clientIdIssuedAt: 1579725929,
131
+ * clientSecret: "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
132
+ * clientSecretExpiresAt: 1587584729
133
+ * }
134
+ * *\/
135
+ * ```
136
+ *
137
+ * @public
138
+ */
139
+ export declare class RegisterClientCommand extends RegisterClientCommand_base {
140
+ /** @internal type navigation helper, not in runtime. */
141
+ protected static __types: {
142
+ api: {
143
+ input: RegisterClientRequest;
144
+ output: RegisterClientResponse;
145
+ };
146
+ sdk: {
147
+ input: RegisterClientCommandInput;
148
+ output: RegisterClientCommandOutput;
149
+ };
150
+ };
151
+ }
@@ -0,0 +1,125 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { StartDeviceAuthorizationRequest, StartDeviceAuthorizationResponse } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartDeviceAuthorizationCommand}.
14
+ */
15
+ export interface StartDeviceAuthorizationCommandInput extends StartDeviceAuthorizationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartDeviceAuthorizationCommand}.
21
+ */
22
+ export interface StartDeviceAuthorizationCommandOutput extends StartDeviceAuthorizationResponse, __MetadataBearer {
23
+ }
24
+ declare const StartDeviceAuthorizationCommand_base: {
25
+ new (input: StartDeviceAuthorizationCommandInput): import("@smithy/smithy-client").CommandImpl<StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput, SSOOIDCClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartDeviceAuthorizationCommandInput): import("@smithy/smithy-client").CommandImpl<StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput, SSOOIDCClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Initiates device authorization by requesting a pair of verification codes from the
31
+ * authorization service.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { SSOOIDCClient, StartDeviceAuthorizationCommand } from "@aws-sdk/client-sso-oidc"; // ES Modules import
36
+ * // const { SSOOIDCClient, StartDeviceAuthorizationCommand } = require("@aws-sdk/client-sso-oidc"); // CommonJS import
37
+ * // import type { SSOOIDCClientConfig } from "@aws-sdk/client-sso-oidc";
38
+ * const config = {}; // type is SSOOIDCClientConfig
39
+ * const client = new SSOOIDCClient(config);
40
+ * const input = { // StartDeviceAuthorizationRequest
41
+ * clientId: "STRING_VALUE", // required
42
+ * clientSecret: "STRING_VALUE", // required
43
+ * startUrl: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new StartDeviceAuthorizationCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // StartDeviceAuthorizationResponse
48
+ * // deviceCode: "STRING_VALUE",
49
+ * // userCode: "STRING_VALUE",
50
+ * // verificationUri: "STRING_VALUE",
51
+ * // verificationUriComplete: "STRING_VALUE",
52
+ * // expiresIn: Number("int"),
53
+ * // interval: Number("int"),
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param StartDeviceAuthorizationCommandInput - {@link StartDeviceAuthorizationCommandInput}
59
+ * @returns {@link StartDeviceAuthorizationCommandOutput}
60
+ * @see {@link StartDeviceAuthorizationCommandInput} for command's `input` shape.
61
+ * @see {@link StartDeviceAuthorizationCommandOutput} for command's `response` shape.
62
+ * @see {@link SSOOIDCClientResolvedConfig | config} for SSOOIDCClient's `config` shape.
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>Indicates that an error from the service occurred while trying to process a
66
+ * request.</p>
67
+ *
68
+ * @throws {@link InvalidClientException} (client fault)
69
+ * <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
70
+ * invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
71
+ * an expired <code>clientSecret</code>.</p>
72
+ *
73
+ * @throws {@link InvalidRequestException} (client fault)
74
+ * <p>Indicates that something is wrong with the input to the request. For example, a required
75
+ * parameter might be missing or out of range.</p>
76
+ *
77
+ * @throws {@link SlowDownException} (client fault)
78
+ * <p>Indicates that the client is making the request too frequently and is more than the
79
+ * service can handle. </p>
80
+ *
81
+ * @throws {@link UnauthorizedClientException} (client fault)
82
+ * <p>Indicates that the client is not currently authorized to make the request. This can happen
83
+ * when a <code>clientId</code> is not issued for a public client.</p>
84
+ *
85
+ * @throws {@link SSOOIDCServiceException}
86
+ * <p>Base exception class for all service exceptions from SSOOIDC service.</p>
87
+ *
88
+ *
89
+ * @example Call OAuth/OIDC /start-device-authorization endpoint
90
+ * ```javascript
91
+ * //
92
+ * const input = {
93
+ * clientId: "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
94
+ * clientSecret: "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
95
+ * startUrl: "https://identitycenter.amazonaws.com/ssoins-111111111111"
96
+ * };
97
+ * const command = new StartDeviceAuthorizationCommand(input);
98
+ * const response = await client.send(command);
99
+ * /* response is
100
+ * {
101
+ * deviceCode: "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE",
102
+ * expiresIn: 1579729529,
103
+ * interval: 1,
104
+ * userCode: "makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE",
105
+ * verificationUri: "https://directory-alias-example.awsapps.com/start/#/device",
106
+ * verificationUriComplete: "https://directory-alias-example.awsapps.com/start/#/device?user_code=makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE"
107
+ * }
108
+ * *\/
109
+ * ```
110
+ *
111
+ * @public
112
+ */
113
+ export declare class StartDeviceAuthorizationCommand extends StartDeviceAuthorizationCommand_base {
114
+ /** @internal type navigation helper, not in runtime. */
115
+ protected static __types: {
116
+ api: {
117
+ input: StartDeviceAuthorizationRequest;
118
+ output: StartDeviceAuthorizationResponse;
119
+ };
120
+ sdk: {
121
+ input: StartDeviceAuthorizationCommandInput;
122
+ output: StartDeviceAuthorizationCommandOutput;
123
+ };
124
+ };
125
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./CreateTokenCommand";
2
+ export * from "./CreateTokenWithIAMCommand";
3
+ export * from "./RegisterClientCommand";
4
+ export * from "./StartDeviceAuthorizationCommand";
@@ -0,0 +1,50 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | undefined | Provider<string | undefined>;
7
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
15
+ defaultSigningName: string;
16
+ };
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const commonParams: {
25
+ readonly UseFIPS: {
26
+ readonly type: "builtInParams";
27
+ readonly name: "useFipsEndpoint";
28
+ };
29
+ readonly Endpoint: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "endpoint";
32
+ };
33
+ readonly Region: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "region";
36
+ };
37
+ readonly UseDualStack: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "useDualstackEndpoint";
40
+ };
41
+ };
42
+ /**
43
+ * @internal
44
+ */
45
+ export interface EndpointParameters extends __EndpointParameters {
46
+ Region?: string | undefined;
47
+ UseDualStack?: boolean | undefined;
48
+ UseFIPS?: boolean | undefined;
49
+ Endpoint?: string | undefined;
50
+ }
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface SSOOIDCExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * <p>IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a
3
+ * native application) to register with IAM Identity Center. The service also enables the client to fetch the
4
+ * user’s access token upon successful authentication and authorization with IAM Identity Center.</p>
5
+ * <p>
6
+ * <b>API namespaces</b>
7
+ * </p>
8
+ * <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
9
+ * OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
10
+ * <p>
11
+ * <b>Considerations for using this guide</b>
12
+ * </p>
13
+ * <p>Before you begin using this guide, we recommend that you first review the following
14
+ * important information about how the IAM Identity Center OIDC service works.</p>
15
+ * <ul>
16
+ * <li>
17
+ * <p>The IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0 Device
18
+ * Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
19
+ * sign-on authentication with the CLI. </p>
20
+ * </li>
21
+ * <li>
22
+ * <p>With older versions of the CLI, the service only emits OIDC access tokens, so to
23
+ * obtain a new token, users must explicitly re-authenticate. To access the OIDC flow that
24
+ * supports token refresh and doesn’t require re-authentication, update to the latest CLI
25
+ * version (1.27.10 for CLI V1 and 2.9.0 for CLI V2) with support for OIDC token refresh
26
+ * and configurable IAM Identity Center session durations. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/configure-user-session.html">Configure Amazon Web Services access portal session duration </a>. </p>
27
+ * </li>
28
+ * <li>
29
+ * <p>The access tokens provided by this service grant access to all Amazon Web Services 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 Amazon Web Services Auth (“sigv4”) credentials for use with IAM-protected Amazon Web Services 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
+ * <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
40
+ * IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
41
+ *
42
+ * @packageDocumentation
43
+ */
44
+ export * from "./SSOOIDCClient";
45
+ export * from "./SSOOIDC";
46
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
47
+ export type { RuntimeExtension } from "./runtimeExtensions";
48
+ export type { SSOOIDCExtensionConfiguration } from "./extensionConfiguration";
49
+ export * from "./commands";
50
+ export * from "./schemas/schemas_0";
51
+ export * from "./models/enums";
52
+ export * from "./models/errors";
53
+ export * from "./models/models_0";
54
+ export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -0,0 +1,14 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from SSOOIDC service.
8
+ */
9
+ export declare class SSOOIDCServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AccessDeniedExceptionReason: {
6
+ readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
12
+ /**
13
+ * @public
14
+ * @enum
15
+ */
16
+ export declare const InvalidRequestExceptionReason: {
17
+ readonly KMS_DISABLED_KEY: "KMS_DisabledException";
18
+ readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
19
+ readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
20
+ readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type InvalidRequestExceptionReason = (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];