Skip to content

Commit 6800db7

Browse files
authored
fix(nested-clients): update latest changes from SSO/SSOOIDC (#7371)
1 parent 76ac1de commit 6800db7

File tree

5 files changed

+49
-6
lines changed

5 files changed

+49
-6
lines changed

packages/nested-clients/src/submodules/sso-oidc/SSOOIDC.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface SSOOIDC {
3030
* <b>API namespaces</b>
3131
* </p>
3232
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
33-
* OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
33+
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
3434
* <p>
3535
* <b>Considerations for using this guide</b>
3636
* </p>

packages/nested-clients/src/submodules/sso-oidc/SSOOIDCClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export interface SSOOIDCClientResolvedConfig extends SSOOIDCClientResolvedConfig
265265
* <b>API namespaces</b>
266266
* </p>
267267
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
268-
* OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
268+
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
269269
* <p>
270270
* <b>Considerations for using this guide</b>
271271
* </p>

packages/nested-clients/src/submodules/sso-oidc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* <b>API namespaces</b>
99
* </p>
1010
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
11-
* OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
11+
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
1212
* <p>
1313
* <b>Considerations for using this guide</b>
1414
* </p>

packages/nested-clients/src/submodules/sso-oidc/models/models_0.ts

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "
33

44
import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
55

6+
/**
7+
* @public
8+
* @enum
9+
*/
10+
export const AccessDeniedExceptionReason = {
11+
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
12+
} as const;
13+
/**
14+
* @public
15+
*/
16+
export type AccessDeniedExceptionReason =
17+
(typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
18+
619
/**
720
* <p>You do not have sufficient access to perform this action.</p>
821
* @public
@@ -16,6 +29,12 @@ export class AccessDeniedException extends __BaseException {
1629
*/
1730
error?: string | undefined;
1831

32+
/**
33+
* <p>A string that uniquely identifies a reason for the error.</p>
34+
* @public
35+
*/
36+
reason?: AccessDeniedExceptionReason | undefined;
37+
1938
/**
2039
* <p>Human-readable text providing additional information, used to assist the client developer
2140
* in understanding the error that occurred.</p>
@@ -33,6 +52,7 @@ export class AccessDeniedException extends __BaseException {
3352
});
3453
Object.setPrototypeOf(this, AccessDeniedException.prototype);
3554
this.error = opts.error;
55+
this.reason = opts.reason;
3656
this.error_description = opts.error_description;
3757
}
3858
}
@@ -129,9 +149,7 @@ export interface CreateTokenRequest {
129149
refreshToken?: string | undefined;
130150

131151
/**
132-
* <p>The list of scopes for which authorization is requested. The access token that is issued
133-
* is limited to the scopes that are granted. If this value is not specified, IAM Identity Center authorizes
134-
* all scopes that are configured for the client during the call to <a>RegisterClient</a>.</p>
152+
* <p>The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.</p>
135153
* @public
136154
*/
137155
scope?: string[] | undefined;
@@ -359,6 +377,22 @@ export class InvalidGrantException extends __BaseException {
359377
}
360378
}
361379

380+
/**
381+
* @public
382+
* @enum
383+
*/
384+
export const InvalidRequestExceptionReason = {
385+
KMS_DISABLED_KEY: "KMS_DisabledException",
386+
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
387+
KMS_INVALID_STATE: "KMS_InvalidStateException",
388+
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
389+
} as const;
390+
/**
391+
* @public
392+
*/
393+
export type InvalidRequestExceptionReason =
394+
(typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
395+
362396
/**
363397
* <p>Indicates that something is wrong with the input to the request. For example, a required
364398
* parameter might be missing or out of range.</p>
@@ -374,6 +408,12 @@ export class InvalidRequestException extends __BaseException {
374408
*/
375409
error?: string | undefined;
376410

411+
/**
412+
* <p>A string that uniquely identifies a reason for the error.</p>
413+
* @public
414+
*/
415+
reason?: InvalidRequestExceptionReason | undefined;
416+
377417
/**
378418
* <p>Human-readable text providing additional information, used to assist the client developer
379419
* in understanding the error that occurred.</p>
@@ -391,6 +431,7 @@ export class InvalidRequestException extends __BaseException {
391431
});
392432
Object.setPrototypeOf(this, InvalidRequestException.prototype);
393433
this.error = opts.error;
434+
this.reason = opts.reason;
394435
this.error_description = opts.error_description;
395436
}
396437
}

packages/nested-clients/src/submodules/sso-oidc/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ const de_AccessDeniedExceptionRes = async (
157157
const doc = take(data, {
158158
error: __expectString,
159159
error_description: __expectString,
160+
reason: __expectString,
160161
});
161162
Object.assign(contents, doc);
162163
const exception = new AccessDeniedException({
@@ -283,6 +284,7 @@ const de_InvalidRequestExceptionRes = async (
283284
const doc = take(data, {
284285
error: __expectString,
285286
error_description: __expectString,
287+
reason: __expectString,
286288
});
287289
Object.assign(contents, doc);
288290
const exception = new InvalidRequestException({

0 commit comments

Comments
 (0)