mirror of
https://github.com/FTBTeam/keycloak-discord.git
synced 2026-11-29 22:12:09 -05:00
v1.0.0
# 1.0.0 (2025-12-01) ### Bug Fixes * eliminate the possibility of NullPointerException ([#56](https://github.com/FTBTeam/keycloak-discord/issues/56)) ([e2b5991](https://github.com/FTBTeam/keycloak-discord/commit/e2b5991c7ef33ee3ac6483ca00e3e854bb935371)) * ignore discriminator if the value is "0" ([4c68b69](https://github.com/FTBTeam/keycloak-discord/commit/4c68b69b0bf0d6421589e03e4baf8bbbe5138caa)) * maven deploys ([7f86498](https://github.com/FTBTeam/keycloak-discord/commit/7f8649850563c0948f84e04b5f50b100f66e17a7)) * update authorization URL ([#28](https://github.com/FTBTeam/keycloak-discord/issues/28)) ([a31c116](https://github.com/FTBTeam/keycloak-discord/commit/a31c116092183318fdbe09fa059a1f63bb0d794c)) * update discord api endpoint urls ([0aa7f14](https://github.com/FTBTeam/keycloak-discord/commit/0aa7f14edf48a5f9e8a75a68f530cfb1945935e9)) * use DiscordIdentityProvider class in instantiating the Logger ([93003c2](https://github.com/FTBTeam/keycloak-discord/commit/93003c28bc377577b5d4b218e3d89d984a3f1ae6)) ### Features * discord role sync ([9f6c287](https://github.com/FTBTeam/keycloak-discord/commit/9f6c28757819d97f45f758177b934275c7c613bd)) * discord role sync ([e98c2e5](https://github.com/FTBTeam/keycloak-discord/commit/e98c2e52aaf72afe1e8d5751f94dea824c8b85cb)) * implement IdentityProviderFactory#createConfig() which is ([9f359f5](https://github.com/FTBTeam/keycloak-discord/commit/9f359f5f61848131f1b19994a2c75d6955bb9b27)) * update to keycloak 17.0.0 (based on Quarkus) ([f24ed18](https://github.com/FTBTeam/keycloak-discord/commit/f24ed1801141da1fbb58d0a58fafdb5aeb0bfa6e)) * update to keycloak 22.0.1 (support new admin console) ([#37](https://github.com/FTBTeam/keycloak-discord/issues/37)) ([2c8da2d](https://github.com/FTBTeam/keycloak-discord/commit/2c8da2da4b48ea081644deb7fc11931aba55ba8f)) * update to keycloak 26.0.5 ([bb66494](https://github.com/FTBTeam/keycloak-discord/commit/bb66494085a170d046d2c377e53548146cf90fd9)) * update to keycloak 26.0.5 ([05a3df4](https://github.com/FTBTeam/keycloak-discord/commit/05a3df43f21289762f72e3ac6780fd6b543d8c07)) * update to keycloak 26.2.5 ([edf6dbb](https://github.com/FTBTeam/keycloak-discord/commit/edf6dbb35464353b6bcbfdf5c652e864bb557cce)) * update to keycloak 26.2.5 ([9f0673a](https://github.com/FTBTeam/keycloak-discord/commit/9f0673a5de15ad7e2a813a99aba9ed21cec0c596)) * update to keycloak 26.4.5 ([596006e](https://github.com/FTBTeam/keycloak-discord/commit/596006e5284147a18ebb684701b61d06e1396596)) * updated provider for Keycloak 25.x ([#49](https://github.com/FTBTeam/keycloak-discord/issues/49)) ([c10480b](https://github.com/FTBTeam/keycloak-discord/commit/c10480b79864a85817d20d48f949475020322090)) * use "Theme Resources" for the custom template ([7cb885c](https://github.com/FTBTeam/keycloak-discord/commit/7cb885cea7ae317ae071a2ac72956faa67d4fdf9))
keycloak-discord
Keycloak Social Login extension for Discord.
Install
Download keycloak-discord-<version>.jar from Releases page.
Then deploy it into $KEYCLOAK_HOME/providers directory.
Setup
Discord
Access to Discord Developer Portal and create your application. You can get Client ID and Client Secret from the created application.
Keycloak
Note: You don't need to setup the theme in master realm from v0.3.0.
- Add
discordIdentity Provider in the realm which you want to configure. - In the
discordidentity provider page, setClient IdandClient Secret. - (Optional) Set Guild Id(s) to allow federation if you want.
Syncing roles
To sync roles from Discord -> Keycloak, do the following:
- Under the
discordIdentity Provider, fill outDiscord Roles mappingvalue with the roles you want synced:
- The format is
Discord-Guild-ID:Discord-Role-ID:Group-Name, like so:613425648685547541:613426529623605268:discord-devs-moderators - You can specify multiple roles by separating them with commas:
613425648685547541:613426529623605268:discord-devs-moderators,613425648685547541:936746847437983786:discord-devs-modmail - If you want to add a role just because the user is on the server, you can use the everyone role ID, which is the same as the guild ID :
613425648685547541:613425648685547541:everyone
- Set up a Mapper under the
discordIdentity Provider:
- Set Mapper Type to
Claim to Group Mapper - Set Claim to
discord-groups - Tick Create Groups if not exists
If the above doesn't get role syncing working, fiddle around with the Sync mode override. (I have mine set to Force, so it re-imports info on every login)
Source Build
Clone this repository and run mvn package.
You can see keycloak-discord-<version>.jar under target directory.
Licence
Author
Languages
Java
100%