-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auth: fix resource type NONE and add resource type SCHEMA #1362
Conversation
Change-Id: Iabcac3c931a977cca8ef911615152c09c517bee9
just for role permission, not for required permission Change-Id: Iaaa1a08fbabb8b73a58c5934c742553930251b4a
since STATUS-read can be represented, but STATUS-write can't be Change-Id: I4803c1cd94a1e3f4fcebb9db29340e8e08e72f3f
Change-Id: I5ce1405d5c9ad57f3c4e739d39a5c370dc89e39c
Change-Id: I0433719bfc9885ee12e264c59212cca214e6e624
Codecov Report
@@ Coverage Diff @@
## master #1362 +/- ##
============================================
+ Coverage 62.38% 62.40% +0.01%
- Complexity 5817 5826 +9
============================================
Files 385 385
Lines 31922 31927 +5
Branches 4451 4453 +2
============================================
+ Hits 19916 19925 +9
+ Misses 9984 9982 -2
+ Partials 2022 2020 -2
Continue to review full report at Codecov.
|
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.EDGE)); | ||
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.VERTEX_LABEL)); | ||
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.META)); | ||
Assert.assertTrue(ResourceType.ALL.match(ResourceType.ALL));; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate with line 160, ALL -> ROOT
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.USER_GROUP)); | ||
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.TARGET)); | ||
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.METRICS)); | ||
Assert.assertFalse(ResourceType.ALL.match(ResourceType.ROOT)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
* Construct required permission such as: | ||
* $owner=graph1 $action=read | ||
* (means required read permission of any one resource) | ||
* maybe also support: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an empty line and ”In the future maybe also support:“
efd8753
to
4c544cc
Compare
4c544cc
to
227e899
Compare
No description provided.