Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Release 10.0.0. Configure JwtAuthorizationRoute by passing in a share…
Browse files Browse the repository at this point in the history
…dSecretProvider. Migrate from the previous version by passing in {sharedSecretProvider: new sharedSecret.RestSharedSecretProvider(...)}.
  • Loading branch information
jeff committed Dec 20, 2018
1 parent 9ab99ab commit 2b66f6c
Show file tree
Hide file tree
Showing 29 changed files with 148 additions and 250 deletions.
3 changes: 1 addition & 2 deletions dist/jwtauth/JwtAuthorizationRoute.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import * as cassava from "cassava";
import { MerchantKeyProvider } from "./merchantSharedKey/MerchantKeyProvider";
import { JwtAuthorizationRouteOptions } from "./JwtAuthorizationRouteOptions";
export declare class JwtAuthorizationRoute implements cassava.routes.Route {
private readonly options;
private readonly infoLogFunction?;
private readonly errorLogFunction?;
private readonly authConfigPromise;
private readonly rolesConfigPromise?;
readonly merchantKeyProvider: MerchantKeyProvider;
private readonly sharedSecretProvider;
constructor(options: JwtAuthorizationRouteOptions);
handle(evt: cassava.RouterEvent): Promise<cassava.RouterResponse>;
postProcess(evt: cassava.RouterEvent, resp: cassava.RouterResponse): Promise<cassava.RouterResponse>;
Expand Down
12 changes: 3 additions & 9 deletions dist/jwtauth/JwtAuthorizationRoute.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jwtauth/JwtAuthorizationRoute.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions dist/jwtauth/JwtAuthorizationRouteOptions.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { AuthenticationConfig } from "../secureConfig";
import { RolesConfig } from "../secureConfig";
import { AssumeScopeToken } from "../secureConfig";
import { SharedSecretProvider } from "./sharedSecret/SharedSecretProvider";
export interface JwtAuthorizationRouteOptions {
authConfigPromise: Promise<AuthenticationConfig>;
rolesConfigPromise?: Promise<RolesConfig>;
merchantKeyUri?: string;
assumeGetSharedSecretToken?: Promise<AssumeScopeToken>;
sharedSecretProvider?: SharedSecretProvider;
infoLogFunction?: (...msg: any[]) => void;
errorLogFunction?: (...msg: any[]) => void;
}
1 change: 1 addition & 0 deletions dist/jwtauth/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export { AuthorizationHeader } from "./AuthorizationHeader";
export { JwtAuthorizationRoute } from "./JwtAuthorizationRoute";
export { JwtHeader } from "./JwtHeader";
export { JwtPayload } from "./JwtPayload";
export * from "./sharedSecret";
4 changes: 4 additions & 0 deletions dist/jwtauth/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jwtauth/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions dist/jwtauth/merchantSharedKey/MerchantKeyProvider.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions dist/jwtauth/merchantSharedKey/MerchantKeyProvider.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/jwtauth/merchantSharedKey/MerchantKeyProvider.js.map

This file was deleted.

8 changes: 0 additions & 8 deletions dist/jwtauth/merchantSharedKey/RestMerchantKeyProvider.d.ts

This file was deleted.

32 changes: 0 additions & 32 deletions dist/jwtauth/merchantSharedKey/RestMerchantKeyProvider.js

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions dist/jwtauth/merchantSharedKey/StaticKey.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions dist/jwtauth/merchantSharedKey/StaticKey.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/jwtauth/merchantSharedKey/StaticKey.js.map

This file was deleted.

Loading

0 comments on commit 2b66f6c

Please sign in to comment.