This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 3.0.2. Remember to include the damn dist files.
- Loading branch information
jeff
committed
Jul 6, 2017
1 parent
0af8c63
commit d77b0c5
Showing
20 changed files
with
148 additions
and
28 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 |
---|---|---|
@@ -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; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.