feat: remove platform attachment requirement on registration

This commit is contained in:
lfleischmann
2022-11-23 14:57:36 +01:00
committed by GitHub
parent 3a238ae1e4
commit 1f6edcf6de
79 changed files with 761 additions and 243 deletions

View File

@ -50,7 +50,7 @@ func TestWebauthnHandler_BeginRegistration(t *testing.T) {
assert.NotEmpty(t, creationOptions.Response.Challenge)
assert.Equal(t, userIdBytes, creationOptions.Response.User.ID)
assert.Equal(t, defaultConfig.Webauthn.RelyingParty.Id, creationOptions.Response.RelyingParty.ID)
assert.Equal(t, creationOptions.Response.AuthenticatorSelection.ResidentKey, protocol.ResidentKeyRequirementPreferred)
assert.Equal(t, creationOptions.Response.AuthenticatorSelection.ResidentKey, protocol.ResidentKeyRequirementRequired)
assert.Equal(t, creationOptions.Response.AuthenticatorSelection.UserVerification, protocol.VerificationRequired)
assert.True(t, *creationOptions.Response.AuthenticatorSelection.RequireResidentKey)
}