8000 KEYCLOAK-14191 Client Policy - Condition : Author of a client - User Group by tnorimat · Pull Request #7659 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

KEYCLOAK-14191 Client Policy - Condition : Author of a client - User Group - #7659

Merged
mposolda merged 1 commit into
keycloak:masterfrom
Hitachi:KEYCLOAK-14191
Dec 3, 2020
Merged

mposolda merged 1 commit into
keycloak:masterfrom
Hitachi:KEYCLOAK-14191

Conversation

@tnorimat
@tnorimat tnorimat commented Dec 3, 2020
Copy link
Copy Markdown
Contributor

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.

@tnorimat
tnorimat commented Dec 3, 2020
Copy link
Copy Markdown
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 mposolda left a comment •
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

This is not directly related to this PR. Just some idea for the future :)

WDYT?

@tnorimat
tnorimat commented Dec 4, 2020
Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0