-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WIP: Add client scope mapping of roles between clients #242
WIP: Add client scope mapping of roles between clients #242
Conversation
The code looks good so far. My only thought for you is that the provider already supports the I am not really sure if this solves the same problem as the resource you're suggesting, which appears to use the same API as the "Scopes" tab on the client interface. In any case, I don't have a problem with merging this PR, I'd just like you to add some tests and some example HCL within the Thanks for the PR! |
Awesome, glad it's on the right track. The difference with the hardcoded mapper is that the role then will come back in the token for your client. I will get the tests and docs sorted asap. Thanks again for being so active and welcoming to contributions 🙇 |
Thanks for the explanation, that makes perfect sense. I'm fine with merging your PR as-is, but I'll leave it since you had mentioned that you wanted to add docs for this. |
I don't want the lack of docs to hold this up, especially as you said you are happy to merge. I have added an example to the I am happy for this to be merged whenever you are. You rock @mrparkers 🤘 |
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.
Perfect, thanks for the PR!
Hi great work! Would it be a large effort if the possibility to map client roles would also be extended to client_scopes instead? This has been done in other resources like the |
Hey @mrparkers, thanks for creating and maintaining this provider. It's great to see such activity and collaboration.
I am planning a Keycloak deploy and am trying to provision it using terraform and this provider. A use case I have is mapping roles between clients.
This is my first time with keycloak and golang so I'm submitting a WIP just to be sure I am on the right track. Please let me know if you would prefer the implementation another way.
create
,read
,delete
resources (update
is not needed)Update docs with new resourceAdd exampleI went with the following structure for the resource. I didn't use an array of roles as I thought that might add complexity for roles from different parent clients:
Any direction before I wrap up the docs and tests would be great