-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(experimentalIdentityAndAuth): add
HttpAuthExtensionConfiguration
Add code-generation for `HttpAuthExtensionConfiguration`, which allows configuring: - `httpAuthSchemes` - `httpAuthSchemeProvider` - Any `ConfigField` registered by `HttpAuthScheme`s Also, add relative import dependencies for: - `httpAuthSchemeProvider` - `httpAuthExtensionConfiguration`
- Loading branch information
Steven Yuan
committed
Sep 6, 2023
1 parent
6f6f6fe
commit 7758b2a
Showing
7 changed files
with
471 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...thy/typescript/codegen/auth/http/integration/HttpAuthExtensionConfigurationInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package software.amazon.smithy.typescript.codegen.auth.http.integration; | ||
|
||
import software.amazon.smithy.typescript.codegen.Dependency; | ||
import software.amazon.smithy.typescript.codegen.auth.AuthUtils; | ||
import software.amazon.smithy.typescript.codegen.extensions.ExtensionConfigurationInterface; | ||
import software.amazon.smithy.utils.Pair; | ||
import software.amazon.smithy.utils.SmithyInternalApi; | ||
|
||
/** | ||
* Adds the corresponding interface and functions for {@code HttpAuthExtensionConfiguration}. | ||
* | ||
* This is experimental for `experimentalIdentityAndAuth`. | ||
*/ | ||
@SmithyInternalApi | ||
public class HttpAuthExtensionConfigurationInterface implements ExtensionConfigurationInterface { | ||
@Override | ||
public Pair<String, Dependency> name() { | ||
return Pair.of("HttpAuthExtensionConfiguration", AuthUtils.AUTH_HTTP_EXTENSION_DEPENDENCY); | ||
} | ||
|
||
@Override | ||
public Pair<String, Dependency> getExtensionConfigurationFn() { | ||
return Pair.of("getHttpAuthExtensionConfiguration", AuthUtils.AUTH_HTTP_EXTENSION_DEPENDENCY); | ||
} | ||
|
||
@Override | ||
public Pair<String, Dependency> resolveRuntimeConfigFn() { | ||
return Pair.of("resolveHttpAuthRuntimeConfig", AuthUtils.AUTH_HTTP_EXTENSION_DEPENDENCY); | ||
} | ||
} |
Oops, something went wrong.