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

Commit

Permalink
Release 3.0.2. Remember to include the damn dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff committed Jul 6, 2017
1 parent 0af8c63 commit d77b0c5
Show file tree
Hide file tree
Showing 20 changed files with 148 additions and 28 deletions.
16 changes: 15 additions & 1 deletion dist/jwtauth/AuthorizationBadge.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
import { JwtPayload } from "./JwtPayload";
import { RolesConfig } from "../secureConfig/RolesConfig";
/**
* Expanded representation of the JWT payload.
*/
export declare class AuthorizationBadge {
giftbitUserId: string;
merchantId: string;
cardId: string;
programId: string;
recipientId: string;
templateId: string;
teamMemberId: string;
serviceId: string;
audience: string;
issuer: string;
issuedAtTime: Date;
expirationTime: Date;
uniqueIdentifier: string;
roles: string[];
scopes: string[];
constructor(jwtPayload?: JwtPayload);
effectiveScopes: string[];
constructor(jwtPayload?: JwtPayload, rolesConfig?: RolesConfig);
private getEffectiveScopes(rolesConfig);
private getParentScope(scope);
isBadgeAuthorized(scope: string): boolean;
requireScopes(...scopes: string[]): void;
requireIds(...ids: ("giftbitUserId" | "merchantId" | "cardId" | "programId" | "recipientId" | "templateId" | "teamMemberId" | "serviceId")[]): void;
}
83 changes: 81 additions & 2 deletions dist/jwtauth/AuthorizationBadge.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/AuthorizationBadge.js.map

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

3 changes: 3 additions & 0 deletions dist/jwtauth/AuthorizationHeader.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { JwtHeader } from "./JwtHeader";
/**
* Expanded representation of the JWT header.
*/
export declare class AuthorizationHeader {
version: number;
validAfterVersion: number;
Expand Down
3 changes: 3 additions & 0 deletions dist/jwtauth/AuthorizationHeader.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/AuthorizationHeader.js.map

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

10 changes: 5 additions & 5 deletions dist/jwtauth/JwtAuthorizationRoute.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as cassava from "cassava";
import * as jwt from "jsonwebtoken";
import { AuthenticationBadgeKey } from "../secureConfig/AuthenticationBadgeKey";
import { AuthenticationConfig } from "../secureConfig/AuthenticationConfig";
import { RolesConfig } from "../secureConfig/RolesConfig";
export declare class JwtAuthorizationRoute implements cassava.routes.Route {
private readonly authBadgePromise;
private readonly jwtOptions;
private readonly authConfigPromise;
private readonly rolesConfigPromise;
/**
* Log errors to console.
*/
logErrors: boolean;
constructor(authBadgePromise: Promise<AuthenticationBadgeKey>, jwtOptions?: jwt.VerifyOptions);
constructor(authConfigPromise: Promise<AuthenticationConfig>, rolesConfigPromise?: Promise<RolesConfig>);
handle(evt: cassava.RouterEvent): Promise<cassava.RouterResponse>;
postProcess(evt: cassava.RouterEvent, resp: cassava.RouterResponse): Promise<cassava.RouterResponse>;
matches(evt: cassava.RouterEvent): boolean;
Expand Down
20 changes: 11 additions & 9 deletions dist/jwtauth/JwtAuthorizationRoute.js

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

Loading

0 comments on commit d77b0c5

Please sign in to comment.