commonMain.aws.smithy.kotlin.runtime.identity.IdentityProviderConfig.kt Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.identity
import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotlin.runtime.auth.AuthSchemeId
/**
* Identity providers configured for the SDK.
*/
public fun interface IdentityProviderConfig {
/**
* Retrieve an identity provider for the provided auth scheme ID.
*/
public fun identityProviderForScheme(schemeId: AuthSchemeId): IdentityProvider
}
/**
* Treat a single identity provider as [IdentityProviderConfig]
*/
@InternalApi
public fun IdentityProvider.asIdentityProviderConfig(): IdentityProviderConfig = IdentityProviderConfig { this }
© 2015 - 2024 Weber Informatics LLC | Privacy Policy