-
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): reorganize package structure into …
…NPM packages
- Loading branch information
Steven Yuan
committed
Oct 10, 2023
1 parent
a88dcfc
commit 003f6f1
Showing
27 changed files
with
59 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@smithy/experimental-identity-and-auth": patch | ||
--- | ||
|
||
Reorganize package structure into NPM packages. |
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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
export * from "./HttpAuthScheme"; | ||
export * from "./HttpAuthSchemeProvider"; | ||
export * from "./HttpSigner"; | ||
export * from "./IdentityProviderConfig"; | ||
export * from "./SigV4Signer"; | ||
export * from "./apiKeyIdentity"; | ||
export * from "./endpointRuleSet"; | ||
export * from "./httpApiKeyAuth"; | ||
export * from "./httpBearerAuth"; | ||
export * from "./memoizeIdentityProvider"; | ||
export * from "./middleware-http-auth-scheme"; | ||
export * from "./middleware-http-signing"; | ||
export * from "./noAuth"; | ||
export * from "./tokenIdentity"; | ||
export * from "./signature-v4"; | ||
export * from "./types"; | ||
export * from "./util-endpoint-rule-set-auth"; | ||
export * from "./util-http-api-key-auth"; | ||
export * from "./util-http-bearer-auth"; | ||
export * from "./util-identity-and-auth"; |
2 changes: 1 addition & 1 deletion
2
...entity-and-auth/src/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.ts
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
2 changes: 1 addition & 1 deletion
2
...experimental-identity-and-auth/src/middleware-http-auth-scheme/getHttpAuthSchemePlugin.ts
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
1 change: 1 addition & 0 deletions
1
packages/experimental-identity-and-auth/src/signature-v4/index.ts
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 @@ | ||
export * from "./SigV4Signer"; |
2 changes: 1 addition & 1 deletion
2
...l-identity-and-auth/src/HttpAuthScheme.ts → ...and-auth/src/types/auth/HttpAuthScheme.ts
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
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
packages/experimental-identity-and-auth/src/types/auth/index.ts
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,3 @@ | ||
export * from "./HttpAuthScheme"; | ||
export * from "./HttpAuthSchemeProvider"; | ||
export * from "./HttpSigner"; |
16 changes: 16 additions & 0 deletions
16
packages/experimental-identity-and-auth/src/types/identity/IdentityProviderConfig.ts
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,16 @@ | ||
import { Identity, IdentityProvider } from "@smithy/types"; | ||
|
||
import { HttpAuthSchemeId } from "../auth/HttpAuthScheme"; | ||
|
||
/** | ||
* Interface to get an IdentityProvider for a specified HttpAuthScheme | ||
* @internal | ||
*/ | ||
export interface IdentityProviderConfig { | ||
/** | ||
* Get the IdentityProvider for a specified HttpAuthScheme. | ||
* @param schemeId schemeId of the HttpAuthScheme | ||
* @returns IdentityProvider or undefined if HttpAuthScheme is not found | ||
*/ | ||
getIdentityProvider(schemeId: HttpAuthSchemeId): IdentityProvider<Identity> | undefined; | ||
} |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
packages/experimental-identity-and-auth/src/types/identity/index.ts
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,3 @@ | ||
export * from "./apiKeyIdentity"; | ||
export * from "./IdentityProviderConfig"; | ||
export * from "./tokenIdentity"; |
File renamed without changes.
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,2 @@ | ||
export * from "./auth"; | ||
export * from "./identity"; |
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
1 change: 1 addition & 0 deletions
1
packages/experimental-identity-and-auth/src/util-endpoint-rule-set-auth/index.ts
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 @@ | ||
export * from "./endpointRuleSet"; |
4 changes: 2 additions & 2 deletions
4
...l-identity-and-auth/src/httpApiKeyAuth.ts → .../util-http-api-key-auth/httpApiKeyAuth.ts
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
1 change: 1 addition & 0 deletions
1
packages/experimental-identity-and-auth/src/util-http-api-key-auth/index.ts
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 @@ | ||
export * from "./httpApiKeyAuth"; |
4 changes: 2 additions & 2 deletions
4
...l-identity-and-auth/src/httpBearerAuth.ts → ...c/util-http-bearer-auth/httpBearerAuth.ts
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
1 change: 1 addition & 0 deletions
1
packages/experimental-identity-and-auth/src/util-http-bearer-auth/index.ts
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 @@ | ||
export * from "./httpBearerAuth"; |
16 changes: 2 additions & 14 deletions
16
...ty-and-auth/src/IdentityProviderConfig.ts → ...and-auth/DefaultIdentityProviderConfig.ts
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
3 changes: 3 additions & 0 deletions
3
packages/experimental-identity-and-auth/src/util-identity-and-auth/index.ts
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,3 @@ | ||
export * from "./DefaultIdentityProviderConfig"; | ||
export * from "./memoizeIdentityProvider"; | ||
export * from "./noAuth"; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...erimental-identity-and-auth/src/noAuth.ts → ...auth/src/util-identity-and-auth/noAuth.ts
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