From e35e096266f182cb39bbf1401302d059221f8a34 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 10 Jun 2021 22:17:25 +0200 Subject: [PATCH] stages/authenticator_webauthn: use tenant title as RP_NAME closes #1004 Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_webauthn/stage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/authentik/stages/authenticator_webauthn/stage.py b/authentik/stages/authenticator_webauthn/stage.py index 12c5e888d..20489194c 100644 --- a/authentik/stages/authenticator_webauthn/stage.py +++ b/authentik/stages/authenticator_webauthn/stage.py @@ -28,8 +28,6 @@ from authentik.stages.authenticator_webauthn.utils import ( get_rp_id, ) -RP_NAME = "authentik" - LOGGER = get_logger() SESSION_KEY_WEBAUTHN_AUTHENTICATED = ( @@ -119,7 +117,7 @@ class AuthenticatorWebAuthnStageView(ChallengeStageView): user = self.get_pending_user() make_credential_options = WebAuthnMakeCredentialOptions( challenge, - RP_NAME, + self.request.tenant.branding_title, get_rp_id(self.request), user.uid, user.username,