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

Discord OAuth2 Provider - Extended to support Guild Roles #50

Merged
merged 4 commits into from
Dec 2, 2023

Conversation

michael94ellis
Copy link
Contributor

@michael94ellis michael94ellis commented Nov 8, 2023

Summary:

  • This documentation is supporting the addition of Guild Role based authentication for Caddy-Security
  • For each Discord Guild in user_group_filters an additional API call will be made to https://discord.com/api/v10/users/@me/guilds/{guild.id}/member. This API call will contain the Role IDs for a user in a given Guild
  • Guild Roles can be used in the transform user block of the Caddyfile as described in the docs added. The new roles will be in this format discord.com/{$DISCORD_GUILD_ID}/role/{$DISCORD_ROLE_ID}
  • Existing roles will continue to be added undisturbed (dicord.com/{$GUILD_ID}/members, dicord.com/{$GUILD_ID}/admins)
  • Replaced a func that is fails on 32-bit systems related to assignment of the role dicord.com/{$GUILD_ID}/admins
  • Minor typos fixes

Documentation PR - https://github.com/authp/authp.github.io/pull/53

Related:
Caddy Community forum post- https://caddy.community/t/caddy-security-update-for-discord-guild-role-authentication/21609

@greenpau greenpau merged commit e626f47 into greenpau:main Dec 2, 2023
2 checks passed
@greenpau
Copy link
Owner

greenpau commented Dec 2, 2023

@michael94ellis , thank you! Merged.

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

Successfully merging this pull request may close these issues.

2 participants