Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Aug 17, 2023
1 parent cda34d9 commit f8a4470
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package aws.smithy.kotlin.runtime.http.auth
import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotlin.runtime.auth.AuthOption
import aws.smithy.kotlin.runtime.auth.AuthSchemeId
import aws.smithy.kotlin.runtime.auth.AuthSchemeOption
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigner
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigningAttributes
import aws.smithy.kotlin.runtime.auth.awssigning.HashSpecification
Expand Down Expand Up @@ -47,5 +46,5 @@ public fun sigv4(unsignedPayload: Boolean = false): AuthOption {
} else {
emptyAttributes()
}
return AuthSchemeOption(AuthSchemeId.AwsSigV4, attrs)
return AuthOption(AuthSchemeId.AwsSigV4, attrs)
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package aws.smithy.kotlin.runtime.http.operation
import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotlin.runtime.auth.AuthOption
import aws.smithy.kotlin.runtime.auth.AuthSchemeId
import aws.smithy.kotlin.runtime.auth.AuthSchemeOption
import aws.smithy.kotlin.runtime.auth.AuthSchemeProvider
import aws.smithy.kotlin.runtime.http.auth.AnonymousAuthScheme
import aws.smithy.kotlin.runtime.http.auth.AnonymousIdentityProvider
Expand Down Expand Up @@ -45,7 +44,7 @@ public data class OperationAuthConfig(
identityProviderConfig: IdentityProviderConfig,
vararg authSchemes: AuthScheme,
): OperationAuthConfig {
val resolver = AuthSchemeResolver { authSchemes.map { AuthSchemeOption(it.schemeId) } }
val resolver = AuthSchemeResolver { authSchemes.map { AuthOption(it.schemeId) } }
return OperationAuthConfig(resolver, authSchemes.associateBy(AuthScheme::schemeId), identityProviderConfig)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

package aws.smithy.kotlin.runtime.http.operation

import aws.smithy.kotlin.runtime.auth.AuthOption
import aws.smithy.kotlin.runtime.auth.AuthSchemeId
import aws.smithy.kotlin.runtime.auth.AuthSchemeOption
import aws.smithy.kotlin.runtime.client.endpoints.Endpoint
import aws.smithy.kotlin.runtime.http.auth.*
import aws.smithy.kotlin.runtime.http.interceptors.InterceptorExecutor
Expand Down Expand Up @@ -66,7 +66,7 @@ class HttpAuthHandlerTest {
val attrs = attributesOf {
testAttrKey to "testing"
}
listOf(AuthSchemeOption(AuthSchemeId.Anonymous, attrs))
listOf(AuthOption(AuthSchemeId.Anonymous, attrs))
}

val schemes = listOf(scheme).associateBy(AuthScheme::schemeId)
Expand Down

0 comments on commit f8a4470

Please sign in to comment.