File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
webauthn-server-core/src/test/scala/com/yubico/webauthn Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,20 @@ class RelyingPartyStartOperationSpec extends FunSpec with Matchers with Generato
107
107
request2.getChallenge.size should be >= 32
108
108
}
109
109
110
+ it(" allows setting authenticatorSelection." ) {
111
+ val authnrSel = AuthenticatorSelectionCriteria .builder()
112
+ .authenticatorAttachment(AuthenticatorAttachment .CROSS_PLATFORM )
113
+ .requireResidentKey(true )
114
+ .build()
115
+
116
+ val pkcco = relyingParty().startRegistration(
117
+ StartRegistrationOptions .builder()
118
+ .user(userId)
119
+ .authenticatorSelection(authnrSel)
120
+ .build())
121
+ pkcco.getAuthenticatorSelection.asScala should equal (Some (authnrSel))
122
+ }
123
+
110
124
it(" allows setting the timeout to empty." ) {
111
125
val pkcco = relyingParty().startRegistration(
112
126
StartRegistrationOptions .builder()
You can’t perform that action at this time.
0 commit comments