Repository navigation
KEYCLOAK-14191 Client Policy - Condition : Author of a client - User Group - #7659
Merged
Merged
Conversation
Contributor
Author
|
@mposolda This PR is about Client Policy Official Support I mentioned in page 16 of FAPI-SIG 6th Meeting Agenda. Could you or your team review this PR? |
mposolda
approved these changes
Dec 3, 2020
Contributor
There was a problem hiding this comment.
@tnorimat Thanks for the PR! I am approving and merging. Few more things:
- Very minor issue in the comment ClientUpdateSourceGroupsCondition.isGroupsMatched talks about "user.getRolesStream()" , but you are actually processing "groupsStream" . This does not deserve to block/delay this PR, so please fix this eventually in the other PR (together with some other changes) once you have a chance :) Thanks
- I am thinking if it makes sense to have also support for the "negative" logic of the conditions? Similarly like for example our RolesPolicy used in the authorization policies have "Positive" and "Negative" logic. I am thinking about the use-cases like:
- Users who are NOT members of group "foo" can create only the clients with strong signature
algorithms. - Users, who are NOT connecting from the private network addresses like 192.168.0.0/16 are required to use "pkce" during the authentication. So only users from private network don't need PKCE. etc.
- Users who are NOT members of group "foo" can create only the clients with strong signature
This is not directly related to this PR. Just some idea for the future :)
WDYT?
Contributor
Author
|
@mposolda Thank you for your comments. I would like to create a JIRA ticket for fixing minor issues about Client Policies and sent its corresponding PR. As for negative logic of the condition, it is interesting idea. I would like to work on this idea in the future. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is for KEYCLOAK-14191 Client Policy - Condition : Author of a client - User Group in KEYCLOAK-13933 Client Policies, also is the part of the project Client Policy Official Support of FAPI-SIG activity.
Generally speaking, the aim of this PR is to support policy conditions defined in Client Policy design document
It behavior has been specified in the JIRA ticket.