* website/integrations: Update discord integration expression error handling
As per discussion in https://github.com/goauthentik/authentik/pull/5701 after merge, we could do with handling the case where the user is not in the guild being queried!
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
* Correct lowercase f in False.
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
* Update website/integrations/sources/discord/index.md
Co-authored-by: Jens L. <jens@beryju.org>
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
---------
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
Co-authored-by: Jens L. <jens@beryju.org>
* Update Discord OAuth instructions - index.md
Adds two sections to this document describing how the required expression policies needed to check users are a member of a certain guild or a member of a certain guild with a certain role.
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
* Linting and styleguide amendments.
* Remove spurious empty lines.
* Add an extra line to space comments out.
* Moved warning in wrong place.
* Apply suggestions from code review
Refactor as per BeryJu's suggestions.
Co-authored-by: Jens L. <jens@beryju.org>
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
---------
Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
Co-authored-by: Jens L. <jens@beryju.org>