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
Summary:
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 Guildtransform user
block of the Caddyfile as described in the docs added. The new roles will be in this formatdiscord.com/{$DISCORD_GUILD_ID}/role/{$DISCORD_ROLE_ID}
dicord.com/{$GUILD_ID}/members
,dicord.com/{$GUILD_ID}/admins
)dicord.com/{$GUILD_ID}/admins
Code PR - https://github.com/greenpau/go-authcrunch/pull/50