From fe1a06ebf2ec5ba7292ffc47b0ca6d91b7954a20 Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 6 Nov 2023 15:40:43 +0100 Subject: [PATCH] sources/oauth: fix patreon (#7454) * web/admin: add note for potentially confusing consumer key/secret Signed-off-by: Jens Langhammer * sources/oauth: fix patreon default scopes Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer --- authentik/sources/oauth/types/patreon.py | 3 ++- web/src/admin/sources/oauth/OAuthSourceForm.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/authentik/sources/oauth/types/patreon.py b/authentik/sources/oauth/types/patreon.py index 2b54533ff..d02c3d33d 100644 --- a/authentik/sources/oauth/types/patreon.py +++ b/authentik/sources/oauth/types/patreon.py @@ -12,8 +12,9 @@ class PatreonOAuthRedirect(OAuthRedirect): """Patreon OAuth2 Redirect""" def get_additional_parameters(self, source: OAuthSource): # pragma: no cover + # https://docs.patreon.com/#scopes return { - "scope": ["openid", "email", "profile"], + "scope": ["identity", "identity[email]"], } diff --git a/web/src/admin/sources/oauth/OAuthSourceForm.ts b/web/src/admin/sources/oauth/OAuthSourceForm.ts index 5109ce0c4..86db82585 100644 --- a/web/src/admin/sources/oauth/OAuthSourceForm.ts +++ b/web/src/admin/sources/oauth/OAuthSourceForm.ts @@ -386,6 +386,7 @@ export class OAuthSourceForm extends ModelForm { class="pf-c-form-control" required /> +

${msg("Also known as Client ID.")}

{ name="consumerSecret" > +

${msg("Also known as Client Secret.")}