File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
webauthn-server-core/src/test/scala/com/yubico/webauthn Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 24
24
25
25
package com .yubico .webauthn
26
26
27
- import com .yubico .webauthn .data .PublicKeyCredentialCreationOptions
28
27
import com .yubico .webauthn .data .PublicKeyCredentialDescriptor
29
- import com .yubico .webauthn .data .PublicKeyCredentialParameters
30
28
import com .yubico .webauthn .data .PublicKeyCredentialRequestOptions
31
29
import com .yubico .webauthn .test .Helpers
32
30
import com .yubico .webauthn .test .RealExamples
@@ -59,20 +57,17 @@ class RelyingPartyCeremoniesSpec
59
57
val registrationRp =
60
58
modRp(newRp(testData, Helpers .CredentialRepository .empty))
61
59
60
+ val registrationRequest = registrationRp
61
+ .startRegistration(
62
+ StartRegistrationOptions .builder().user(testData.user).build()
63
+ )
64
+ .toBuilder
65
+ .challenge(testData.attestation.challenge)
66
+ .build()
62
67
val registrationResult = registrationRp.finishRegistration(
63
68
FinishRegistrationOptions
64
69
.builder()
65
- .request(
66
- PublicKeyCredentialCreationOptions
67
- .builder()
68
- .rp(testData.rp)
69
- .user(testData.user)
70
- .challenge(testData.attestation.challenge)
71
- .pubKeyCredParams(
72
- List (PublicKeyCredentialParameters .ES256 ).asJava
73
- )
74
- .build()
75
- )
70
+ .request(registrationRequest)
76
71
.response(testData.attestation.credential)
77
72
.build()
78
73
);
You can’t perform that action at this time.
0 commit comments