Skip to content

Commit

Permalink
fix(resourcebasedstatement): validate principal, notPrincipal, resour…
Browse files Browse the repository at this point in the history
…ce and notResource attributes

check when there aren't principal and notPrincipal attributes, and when there aren't resource and
notResource attributes
  • Loading branch information
roggervalf committed Oct 19, 2020
1 parent 78c52ca commit 2aee00c
Show file tree
Hide file tree
Showing 13 changed files with 480 additions and 168 deletions.
6 changes: 6 additions & 0 deletions dist/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,16 @@ declare class ResourceBased extends Statement {
private notResource?;
private notAction?;
private statement;
private hasPrincipals;
private hasResources;
constructor(identity: ResourceBasedType);
getStatement(): ResourceBasedType;
matches({ principal, action, resource, principalType, context, conditionResolver }: MatchResourceBasedInterface): boolean;
private matchPrincipalAndNotPrincipal;
private matchResourceAndNotResource;
private checkAndAssignActions;
private checkAndAssignPrincipals;
private checkAndAssignResources;
private matchPrincipals;
private matchNotPrincipals;
private matchActions;
Expand Down
166 changes: 113 additions & 53 deletions dist/main.es.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/main.es.js.map

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

0 comments on commit 2aee00c

Please sign in to comment.