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:
parent
7af12d4fec
commit
e35e096266
|
@ -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,
|
||||
|
|
Reference in New Issue