Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[BUG] Regex Policy based on multivalued attributes #265

Closed
1 task done
immieszko opened this issue Mar 21, 2024 · 0 comments
Closed
1 task done

[BUG] Regex Policy based on multivalued attributes #265

immieszko opened this issue Mar 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@immieszko
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Using keycloak-restrict-client-auth` with Policy-Based mode. When I want to use Regex Client Policy on multivalue attributes it does not work.
For example, I have User user1 with an attribute:

"attr": [
    "1test",
    "2test"
  ],

image

If I define the target_claim to my_attr and regex pattern to 1test it works, but when I would like to check the 2test I have no idea how to do it 😞. Do you know any solution?
image

Expected Behavior

Check each value from multivalued attribute not only first.

Steps To Reproduce

  1. Create Policy-Based flow,
  2. Use Regex policy based on multivalued attribute
  3. Check the second value of attribute in Policy

Version

- Keycloak: 24.0.1
- This extension: 24.0.0

Anything else?

No response

@immieszko immieszko added the bug Something isn't working label Mar 21, 2024
@immieszko immieszko changed the title [BUG] <title> [BUG] Regex Policy based on multivalued attributes Mar 21, 2024
@sventorben sventorben self-assigned this Mar 21, 2024
Repository owner locked and limited conversation to collaborators Mar 21, 2024
@sventorben sventorben converted this issue into discussion #266 Mar 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants