stages/authenticator_webauthn: use tenant title as RP_NAME

closes #1004

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-10 22:17:25 +02:00
parent 7af12d4fec
commit e35e096266
1 changed files with 1 additions and 3 deletions

View File

@ -28,8 +28,6 @@ from authentik.stages.authenticator_webauthn.utils import (
get_rp_id, get_rp_id,
) )
RP_NAME = "authentik"
LOGGER = get_logger() LOGGER = get_logger()
SESSION_KEY_WEBAUTHN_AUTHENTICATED = ( SESSION_KEY_WEBAUTHN_AUTHENTICATED = (
@ -119,7 +117,7 @@ class AuthenticatorWebAuthnStageView(ChallengeStageView):
user = self.get_pending_user() user = self.get_pending_user()
make_credential_options = WebAuthnMakeCredentialOptions( make_credential_options = WebAuthnMakeCredentialOptions(
challenge, challenge,
RP_NAME, self.request.tenant.branding_title,
get_rp_id(self.request), get_rp_id(self.request),
user.uid, user.uid,
user.username, user.username,