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

[Feature Request] Make keycloak roles add discord roles to users #7

Open
sfxworks opened this issue Jun 15, 2020 · 5 comments
Open

Comments

@sfxworks
Copy link

It would be cool to see some synchronization between discord roles and keycloak roles

@kywan
Copy link

kywan commented Jan 24, 2021

up ! it will be great to have discord group synchronization.

@kywan
Copy link

kywan commented Mar 12, 2021

It would be cool to see some synchronization between discord roles and keycloak roles

i did a bot can handle this : https://github.com/kywan/keycloak-discord-roles-sync

@williamhatcher
Copy link

@sfxworks can this issue be closed?

@wadahiro
Copy link
Owner

I'm sorry for the late reply. Thanks for the feature request!

As far as I know, Discord's role is not included in the identity federation. And even if it is, it can only get the role assigned to the user, not the other roles.
Therefore, I think it would be difficult to achieve it with this plugin.

So, we need to use another tool like @kywan suggested.

@hydridity
Copy link

I'm sorry for the late reply. Thanks for the feature request!

As far as I know, Discord's role is not included in the identity federation. And even if it is, it can only get the role assigned to the user, not the other roles. Therefore, I think it would be difficult to achieve it with this plugin.

So, we need to use another tool like @kywan suggested.

Indeed, they are not, the only thing keycloak can get from discord oauth as identity provider is guilds that user is in.
As plugin, I think this could be achieved if the plugin acted also as bot on that guild, it would only work if the bot was manually added to every guild that someone wanted to synchronize roles, also depending on way of connecting to discord as bot, writing this from scratch would require also considering rate limiting... or using existing library that has rate limits,
But that could have unforeseen consequences together witch keycloak internal mechanisms (not yet sure how they works).

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

No branches or pull requests

5 participants