stages/authenticator_webauthn: explicitly allow cross-platform devices for iOS/safari

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-21 00:10:07 +01:00
parent 1414322f71
commit c834f0a372
1 changed files with 6 additions and 1 deletions

View File

@ -120,11 +120,16 @@ class AuthenticatorWebAuthnStageView(ChallengeStageView):
user.avatar, user.avatar,
) )
registration_dict = make_credential_options.registration_dict
registration_dict["authenticatorSelection"] = {
"authenticatorAttachment": "cross-platform"
}
return AuthenticatorWebAuthnChallenge( return AuthenticatorWebAuthnChallenge(
data={ data={
"type": ChallengeTypes.native.value, "type": ChallengeTypes.native.value,
"component": "ak-stage-authenticator-webauthn", "component": "ak-stage-authenticator-webauthn",
"registration": make_credential_options.registration_dict, "registration": registration_dict,
} }
) )