forked from andregasser/bigbone
-
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.
Enable hierarchical access to defined scopes
- replace Name enum with hierarchical structure for a more intuitive access to individual scopes - changing samples and USAGE.md to match Examples: - Scope(Scope.Name.READ) becomes Scope(Scope.READ.ALL) - Scope(Scope.Name.ADMIN_READ_ACCOUNTS) becomes Scope(Scope.ADMIN.READ.ACCOUNTS)
- Loading branch information
Showing
10 changed files
with
332 additions
and
156 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
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 |
---|---|---|
|
@@ -18,9 +18,6 @@ class TestConstants { | |
const val USER2_EMAIL = "[email protected]" | ||
const val USER2_PASSWORD = "user2abcdef" | ||
|
||
/** | ||
* This scope should allow accessing all non-admin endpoints in integration tests. | ||
*/ | ||
val fullScope = Scope(Scope.Name.READ, Scope.Name.WRITE, Scope.Name.PUSH) | ||
val fullScope = Scope(Scope.READ.ALL, Scope.WRITE.ALL, Scope.PUSH.ALL) | ||
} | ||
} |
Oops, something went wrong.