Skip to content
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

Default (Client) Roles #324

Open
jcharlytown opened this issue Jun 16, 2020 · 11 comments
Open

Default (Client) Roles #324

jcharlytown opened this issue Jun 16, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@jcharlytown
Copy link

Hi,

first of all thanks everyone for making this provider happen. This makes managing keycloak realms so much easier!

However, I was wondering if there is a functionality to set default roles on a realm, specifically client roles? Using the security console this is possible via "Roles" -> "Default Roles". In case of client roles, on the API level this seems to be a field within the client representation, similar to default client scopes.

Is there such a functionality already included in this project and i'm just missing it? If not, are there any plans to implement such a feature?

Thanks!

@mrparkers mrparkers added the enhancement New feature or request label Jun 29, 2020
@paulvollmer
Copy link
Contributor

hello,
someone working on that feature? if not, then i can work on that.

/cc @mrparkers

@mrparkers
Copy link
Contributor

@paulvollmer feel free to pick it up if you want to work on it, I appreciate the help!

@duc12597
Copy link

+1 for default realm roles

@paulvollmer
Copy link
Contributor

@mrparkers i started working on that.

@ringods
Copy link

ringods commented Jul 15, 2021

Hello @paulvollmer, were you able to make any progress on this? I'm interested in this feature as well.

@arkadiusjonczek
Copy link

arkadiusjonczek commented Aug 10, 2021

Hey guys, I started working on this (realm default roles without client roles atm). You can use composite roles on existing default roles as workaround.

@ringods
Copy link

ringods commented Sep 3, 2021

Hello @arkadiusjonczek, were you able to make some progress on this? Even if you have something incomplete, could you already submit this as a draft PR?

@Vlad-Kirichenko
Copy link
Contributor

Hi all.
I started working on this(realm default roles). PR will be created soon.

@ghost
Copy link

ghost commented Oct 7, 2021

Hi guys. As a temporary workaround one can use keycloak_default_groups. You can just create a group that has all the role mappings you want as default and then make the group default for every (new) user

@arkadiusjonczek
Copy link

This issue could be closed with #599 @mrparkers

@mrparkers
Copy link
Contributor

Hey @arkadiusjonczek, #599 added a new resource for default realm roles, but we still don't have a first class solution for default client roles. Until then, I'll leave this open, and users can use the helpful solution proposed by @ScrumplexDTAG.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants