@aws-sdk/client-sso
Advanced tools
Comparing version 3.511.0 to 3.513.0
@@ -53,2 +53,3 @@ "use strict"; | ||
var import_config_resolver = require("@smithy/config-resolver"); | ||
var import_core = require("@smithy/core"); | ||
var import_middleware_content_length = require("@smithy/middleware-content-length"); | ||
@@ -58,2 +59,3 @@ var import_middleware_endpoint = require("@smithy/middleware-endpoint"); | ||
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); | ||
@@ -83,2 +85,43 @@ // src/endpoint/EndpointParameters.ts | ||
var import_smithy_client = require("@smithy/smithy-client"); | ||
// src/auth/httpAuthExtensionConfiguration.ts | ||
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { | ||
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; | ||
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; | ||
let _credentials = runtimeConfig.credentials; | ||
return { | ||
setHttpAuthScheme(httpAuthScheme) { | ||
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); | ||
if (index === -1) { | ||
_httpAuthSchemes.push(httpAuthScheme); | ||
} else { | ||
_httpAuthSchemes.splice(index, 1, httpAuthScheme); | ||
} | ||
}, | ||
httpAuthSchemes() { | ||
return _httpAuthSchemes; | ||
}, | ||
setHttpAuthSchemeProvider(httpAuthSchemeProvider) { | ||
_httpAuthSchemeProvider = httpAuthSchemeProvider; | ||
}, | ||
httpAuthSchemeProvider() { | ||
return _httpAuthSchemeProvider; | ||
}, | ||
setCredentials(credentials) { | ||
_credentials = credentials; | ||
}, | ||
credentials() { | ||
return _credentials; | ||
} | ||
}; | ||
}, "getHttpAuthExtensionConfiguration"); | ||
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { | ||
return { | ||
httpAuthSchemes: config.httpAuthSchemes(), | ||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(), | ||
credentials: config.credentials() | ||
}; | ||
}, "resolveHttpAuthRuntimeConfig"); | ||
// src/runtimeExtensions.ts | ||
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); | ||
@@ -89,3 +132,4 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { | ||
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)), | ||
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)) | ||
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)), | ||
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) | ||
}; | ||
@@ -97,3 +141,4 @@ extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), | ||
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration) | ||
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), | ||
...resolveHttpAuthRuntimeConfig(extensionConfiguration) | ||
}; | ||
@@ -112,5 +157,6 @@ }, "resolveRuntimeExtensions"); | ||
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5); | ||
const _config_7 = resolveRuntimeExtensions(_config_6, (configuration == null ? void 0 : configuration.extensions) || []); | ||
super(_config_7); | ||
this.config = _config_7; | ||
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); | ||
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []); | ||
super(_config_8); | ||
this.config = _config_8; | ||
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); | ||
@@ -122,2 +168,9 @@ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); | ||
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); | ||
this.middlewareStack.use( | ||
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { | ||
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), | ||
identityProviderConfigProvider: this.getIdentityProviderConfigProvider() | ||
}) | ||
); | ||
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); | ||
} | ||
@@ -132,2 +185,10 @@ /** | ||
} | ||
getDefaultHttpAuthSchemeParametersProvider() { | ||
return import_httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider; | ||
} | ||
getIdentityProviderConfigProvider() { | ||
return async (config) => new import_core.DefaultIdentityProviderConfig({ | ||
"aws.auth#sigv4": config.credentials | ||
}); | ||
} | ||
}; | ||
@@ -259,4 +320,4 @@ __name(_SSOClient, "SSOClient"); | ||
// src/protocols/Aws_restJson1.ts | ||
var import_core = require("@smithy/core"); | ||
var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => { | ||
@@ -263,0 +324,0 @@ const b = (0, import_core.requestBuilder)(input, context); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getRuntimeConfig = void 0; | ||
const core_1 = require("@aws-sdk/core"); | ||
const core_2 = require("@smithy/core"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
@@ -8,2 +10,3 @@ const url_parser_1 = require("@smithy/url-parser"); | ||
const util_utf8_1 = require("@smithy/util-utf8"); | ||
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider"); | ||
const endpointResolver_1 = require("./endpoint/endpointResolver"); | ||
@@ -18,2 +21,15 @@ const getRuntimeConfig = (config) => { | ||
extensions: config?.extensions ?? [], | ||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider, | ||
httpAuthSchemes: config?.httpAuthSchemes ?? [ | ||
{ | ||
schemeId: "aws.auth#sigv4", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
signer: new core_1.AwsSdkSigV4Signer(), | ||
}, | ||
{ | ||
schemeId: "smithy.api#noAuth", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
signer: new core_2.NoAuthSigner(), | ||
}, | ||
], | ||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(), | ||
@@ -20,0 +36,0 @@ serviceId: config?.serviceId ?? "SSO", |
@@ -0,1 +1,3 @@ | ||
import { AwsSdkSigV4Signer } from "@aws-sdk/core"; | ||
import { NoAuthSigner } from "@smithy/core"; | ||
import { NoOpLogger } from "@smithy/smithy-client"; | ||
@@ -5,2 +7,3 @@ import { parseUrl } from "@smithy/url-parser"; | ||
import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; | ||
import { defaultSSOHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider"; | ||
import { defaultEndpointResolver } from "./endpoint/endpointResolver"; | ||
@@ -15,2 +18,15 @@ export const getRuntimeConfig = (config) => { | ||
extensions: config?.extensions ?? [], | ||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider, | ||
httpAuthSchemes: config?.httpAuthSchemes ?? [ | ||
{ | ||
schemeId: "aws.auth#sigv4", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
signer: new AwsSdkSigV4Signer(), | ||
}, | ||
{ | ||
schemeId: "smithy.api#noAuth", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
signer: new NoAuthSigner(), | ||
}, | ||
], | ||
logger: config?.logger ?? new NoOpLogger(), | ||
@@ -17,0 +33,0 @@ serviceId: config?.serviceId ?? "SSO", |
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; | ||
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; | ||
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; | ||
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration"; | ||
const asPartial = (t) => t; | ||
@@ -10,2 +11,3 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), | ||
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)), | ||
}; | ||
@@ -18,3 +20,4 @@ extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
...resolveHttpHandlerRuntimeConfig(extensionConfiguration), | ||
...resolveHttpAuthRuntimeConfig(extensionConfiguration), | ||
}; | ||
}; |
@@ -6,2 +6,3 @@ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header"; | ||
import { resolveRegionConfig } from "@smithy/config-resolver"; | ||
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core"; | ||
import { getContentLengthPlugin } from "@smithy/middleware-content-length"; | ||
@@ -11,2 +12,3 @@ import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; | ||
import { Client as __Client, } from "@smithy/smithy-client"; | ||
import { defaultSSOHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider"; | ||
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"; | ||
@@ -25,5 +27,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; | ||
const _config_6 = resolveUserAgentConfig(_config_5); | ||
const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); | ||
super(_config_7); | ||
this.config = _config_7; | ||
const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
super(_config_8); | ||
this.config = _config_8; | ||
this.middlewareStack.use(getRetryPlugin(this.config)); | ||
@@ -35,2 +38,7 @@ this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), | ||
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(), | ||
})); | ||
this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
} | ||
@@ -40,2 +48,10 @@ destroy() { | ||
} | ||
getDefaultHttpAuthSchemeParametersProvider() { | ||
return defaultSSOHttpAuthSchemeParametersProvider; | ||
} | ||
getIdentityProviderConfigProvider() { | ||
return async (config) => new DefaultIdentityProviderConfig({ | ||
"aws.auth#sigv4": config.credentials, | ||
}); | ||
} | ||
} |
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; | ||
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; | ||
import { DefaultExtensionConfiguration } from "@smithy/types"; | ||
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration"; | ||
/** | ||
* @internal | ||
*/ | ||
export interface SSOExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration { | ||
export interface SSOExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration { | ||
} |
@@ -39,2 +39,18 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
})[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; | ||
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; | ||
}; |
@@ -39,2 +39,18 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
})[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; | ||
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; | ||
}; |
@@ -24,4 +24,4 @@ import { SSOClientConfig } from "./SSOClient"; | ||
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>; | ||
region: string | import("@smithy/types").Provider<any>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>; | ||
maxAttempts: number | import("@smithy/types").Provider<number>; | ||
@@ -39,2 +39,18 @@ retryMode: string | import("@smithy/types").Provider<string>; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
})[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; | ||
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; | ||
}; |
@@ -0,1 +1,4 @@ | ||
import { AwsSdkSigV4Signer } from "@aws-sdk/core"; | ||
import { NoAuthSigner } from "@smithy/core"; | ||
import { IdentityProviderConfig } from "@smithy/types"; | ||
import { SSOClientConfig } from "./SSOClient"; | ||
@@ -14,2 +17,12 @@ /** | ||
extensions: import("./runtimeExtensions").RuntimeExtension[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: NoAuthSigner; | ||
})[]; | ||
logger: import("@smithy/types").Logger; | ||
@@ -16,0 +29,0 @@ serviceId: string; |
@@ -9,2 +9,3 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; | ||
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; | ||
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider"; | ||
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand"; | ||
@@ -98,6 +99,2 @@ import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand"; | ||
/** | ||
* The AWS region to which this client will send requests | ||
*/ | ||
region?: string | __Provider<string>; | ||
/** | ||
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header | ||
@@ -108,2 +105,6 @@ * @internal | ||
/** | ||
* The AWS region to which this client will send requests | ||
*/ | ||
region?: string | __Provider<string>; | ||
/** | ||
* Value for how many times a request will be made at most in case of retry. | ||
@@ -134,3 +135,3 @@ */ | ||
*/ | ||
export type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & ClientInputEndpointParameters; | ||
export type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters; | ||
/** | ||
@@ -146,3 +147,3 @@ * @public | ||
*/ | ||
export type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters; | ||
export type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters; | ||
/** | ||
@@ -186,2 +187,4 @@ * @public | ||
destroy(): void; | ||
private getDefaultHttpAuthSchemeParametersProvider; | ||
private getIdentityProviderConfigProvider; | ||
} |
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; | ||
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; | ||
import { DefaultExtensionConfiguration } from "@smithy/types"; | ||
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration"; | ||
export interface SSOExtensionConfiguration | ||
extends HttpHandlerExtensionConfiguration, | ||
DefaultExtensionConfiguration, | ||
AwsRegionExtensionConfiguration {} | ||
AwsRegionExtensionConfiguration, | ||
HttpAuthExtensionConfiguration {} |
@@ -73,2 +73,48 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
} | ||
)[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
credentials?: | ||
| import("@smithy/types").AwsCredentialIdentity | ||
| import("@smithy/types").AwsCredentialIdentityProvider | ||
| undefined; | ||
signer?: | ||
| import("@smithy/types").RequestSigner | ||
| (( | ||
authScheme?: import("@smithy/types").AuthScheme | undefined | ||
) => Promise<import("@smithy/types").RequestSigner>) | ||
| undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
signerConstructor?: | ||
| (new ( | ||
options: import("@smithy/signature-v4").SignatureV4Init & | ||
import("@smithy/signature-v4").SignatureV4CryptoInit | ||
) => import("@smithy/types").RequestSigner) | ||
| undefined; | ||
}; |
@@ -73,2 +73,48 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
} | ||
)[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
credentials?: | ||
| import("@smithy/types").AwsCredentialIdentity | ||
| import("@smithy/types").AwsCredentialIdentityProvider | ||
| undefined; | ||
signer?: | ||
| import("@smithy/types").RequestSigner | ||
| (( | ||
authScheme?: import("@smithy/types").AuthScheme | undefined | ||
) => Promise<import("@smithy/types").RequestSigner>) | ||
| undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
signerConstructor?: | ||
| (new ( | ||
options: import("@smithy/signature-v4").SignatureV4Init & | ||
import("@smithy/signature-v4").SignatureV4CryptoInit | ||
) => import("@smithy/types").RequestSigner) | ||
| undefined; | ||
}; |
@@ -32,6 +32,6 @@ import { SSOClientConfig } from "./SSOClient"; | ||
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>; | ||
region: string | import("@smithy/types").Provider<any>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider< | ||
import("@smithy/types").UserAgent | ||
>; | ||
region: string | import("@smithy/types").Provider<any>; | ||
maxAttempts: number | import("@smithy/types").Provider<number>; | ||
@@ -65,2 +65,48 @@ retryMode: string | import("@smithy/types").Provider<string>; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
} | ||
)[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
credentials?: | ||
| import("@smithy/types").AwsCredentialIdentity | ||
| import("@smithy/types").AwsCredentialIdentityProvider | ||
| undefined; | ||
signer?: | ||
| import("@smithy/types").RequestSigner | ||
| (( | ||
authScheme?: import("@smithy/types").AuthScheme | undefined | ||
) => Promise<import("@smithy/types").RequestSigner>) | ||
| undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
signerConstructor?: | ||
| (new ( | ||
options: import("@smithy/signature-v4").SignatureV4Init & | ||
import("@smithy/signature-v4").SignatureV4CryptoInit | ||
) => import("@smithy/types").RequestSigner) | ||
| undefined; | ||
}; |
@@ -0,1 +1,4 @@ | ||
import { AwsSdkSigV4Signer } from "@aws-sdk/core"; | ||
import { NoAuthSigner } from "@smithy/core"; | ||
import { IdentityProviderConfig } from "@smithy/types"; | ||
import { SSOClientConfig } from "./SSOClient"; | ||
@@ -14,2 +17,29 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => { | ||
extensions: import("./runtimeExtensions").RuntimeExtension[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: NoAuthSigner; | ||
} | ||
)[]; | ||
logger: import("@smithy/types").Logger; | ||
@@ -16,0 +46,0 @@ serviceId: string; |
@@ -44,2 +44,6 @@ import { | ||
import { | ||
HttpAuthSchemeInputConfig, | ||
HttpAuthSchemeResolvedConfig, | ||
} from "./auth/httpAuthSchemeProvider"; | ||
import { | ||
GetRoleCredentialsCommandInput, | ||
@@ -93,4 +97,4 @@ GetRoleCredentialsCommandOutput, | ||
useFipsEndpoint?: boolean | __Provider<boolean>; | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
region?: string | __Provider<string>; | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
maxAttempts?: number | __Provider<number>; | ||
@@ -111,2 +115,3 @@ retryMode?: string | __Provider<string>; | ||
UserAgentInputConfig & | ||
HttpAuthSchemeInputConfig & | ||
ClientInputEndpointParameters; | ||
@@ -123,2 +128,3 @@ export interface SSOClientConfig extends SSOClientConfigType {} | ||
UserAgentResolvedConfig & | ||
HttpAuthSchemeResolvedConfig & | ||
ClientResolvedEndpointParameters; | ||
@@ -135,2 +141,4 @@ export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {} | ||
destroy(): void; | ||
private getDefaultHttpAuthSchemeParametersProvider; | ||
private getIdentityProviderConfigProvider; | ||
} |
{ | ||
"name": "@aws-sdk/client-sso", | ||
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", | ||
"version": "3.511.0", | ||
"version": "3.513.0", | ||
"scripts": { | ||
@@ -23,3 +23,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/core": "3.511.0", | ||
"@aws-sdk/core": "3.513.0", | ||
"@aws-sdk/middleware-host-header": "3.511.0", | ||
@@ -35,3 +35,3 @@ "@aws-sdk/middleware-logger": "3.511.0", | ||
"@smithy/config-resolver": "^2.1.1", | ||
"@smithy/core": "^1.3.1", | ||
"@smithy/core": "^1.3.2", | ||
"@smithy/fetch-http-handler": "^2.4.1", | ||
@@ -55,4 +55,5 @@ "@smithy/hash-node": "^2.1.1", | ||
"@smithy/util-defaults-mode-browser": "^2.1.1", | ||
"@smithy/util-defaults-mode-node": "^2.1.1", | ||
"@smithy/util-defaults-mode-node": "^2.2.0", | ||
"@smithy/util-endpoints": "^1.1.1", | ||
"@smithy/util-middleware": "^2.1.1", | ||
"@smithy/util-retry": "^2.1.1", | ||
@@ -59,0 +60,0 @@ "@smithy/util-utf8": "^2.1.1", |
201663
111
4048
38
+ Added@aws-sdk/core@3.513.0(transitive)
- Removed@aws-sdk/core@3.511.0(transitive)
Updated@aws-sdk/core@3.513.0
Updated@smithy/core@^1.3.2