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,
|
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,
|
||||||
|
|
Reference in a new issue