@@ -98,7 +98,7 @@ public void attestationOptionsEndpointPath_with_anonymous_user_test() throws Exc
9898 mvc
9999 .perform (get ("/webauthn/attestation/options" ).with (anonymous ()))
100100 .andExpect (unauthenticated ())
101- .andExpect (content ().json ("{\" rp\" :{\" id\" :\" example.com\" ,\" name\" :\" example\" },\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" pubKeyCredParams\" :[{\" type\" :\" public-key\" ,\" alg\" :-7},{\" type\" :\" public-key\" ,\" alg\" :-65535}],\" timeout\" :10000,\" excludeCredentials\" :[],\" authenticatorSelection\" :{\" authenticatorAttachment\" :\" cross-platform\" ,\" requireResidentKey\" :false,\" residentKey\" :\" preferred\" ,\" userVerification\" :\" preferred\" },\" attestation\" :\" direct\" ,\" extensions\" :{\" uvm\" :true,\" credProps\" :true,\" extensionProvider\" :\" /webauthn/attestation/options\" ,\" unknown\" :true}}" , true ))
101+ .andExpect (content ().json ("{\" rp\" :{\" id\" :\" example.com\" ,\" name\" :\" example\" },\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" pubKeyCredParams\" :[{\" type\" :\" public-key\" ,\" alg\" :-7},{\" type\" :\" public-key\" ,\" alg\" :-65535}],\" timeout\" :10000,\" excludeCredentials\" :[],\" authenticatorSelection\" :{\" authenticatorAttachment\" :\" cross-platform\" ,\" requireResidentKey\" :false,\" residentKey\" :\" preferred\" ,\" userVerification\" :\" preferred\" },\" attestation\" :\" direct\" ,\" extensions\" :{\" uvm\" :true,\" credProps\" :true,\" extensionProvider\" :\" /webauthn/attestation/options\" ,\" unknown\" :true}}" ))
102102 .andExpect (status ().isOk ());
103103 }
104104
@@ -111,7 +111,7 @@ public void assertionOptionsEndpointPath_with_anonymous_user_test() throws Excep
111111 mvc
112112 .perform (get ("/webauthn/assertion/options" ).with (anonymous ()))
113113 .andExpect (unauthenticated ())
114- .andExpect (content ().json ("{\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" timeout\" :20000,\" rpId\" :\" example.com\" ,\" allowCredentials\" :[],\" userVerification\" :\" preferred\" ,\" extensions\" :{\" appid\" :\" appid\" ,\" appidExclude\" :\" appidExclude\" ,\" uvm\" :true,\" extensionProvider\" :\" /webauthn/assertion/options\" ,\" unknown\" :true}}" , true ))
114+ .andExpect (content ().json ("{\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" timeout\" :20000,\" rpId\" :\" example.com\" ,\" allowCredentials\" :[],\" userVerification\" :\" preferred\" ,\" extensions\" :{\" appid\" :\" appid\" ,\" appidExclude\" :\" appidExclude\" ,\" uvm\" :true,\" extensionProvider\" :\" /webauthn/assertion/options\" ,\" unknown\" :true}}" ))
115115 .andExpect (status ().isOk ());
116116 }
117117
@@ -138,7 +138,7 @@ public void attestationOptionsEndpointPath_with_authenticated_user_test() throws
138138 mvc
139139 .perform (get ("/webauthn/attestation/options" ).with (user ("john" )))
140140 .andExpect (authenticated ())
141- .andExpect (content ().json ("{\" rp\" :{\" id\" :\" example.com\" ,\" name\" :\" example\" },\" user\" :{\" id\" :\" am9obg\" ,\" name\" :\" john\" ,\" displayName\" :\" john\" },\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" pubKeyCredParams\" :[{\" type\" :\" public-key\" ,\" alg\" :-7},{\" type\" :\" public-key\" ,\" alg\" :-65535}],\" timeout\" :10000,\" excludeCredentials\" :[],\" authenticatorSelection\" :{\" authenticatorAttachment\" :\" cross-platform\" ,\" requireResidentKey\" :false,\" residentKey\" :\" preferred\" ,\" userVerification\" :\" preferred\" },\" attestation\" :\" direct\" ,\" extensions\" :{\" uvm\" :true,\" credProps\" :true,\" extensionProvider\" :\" /webauthn/attestation/options\" ,\" unknown\" :true}}" , true ))
141+ .andExpect (content ().json ("{\" rp\" :{\" id\" :\" example.com\" ,\" name\" :\" example\" },\" user\" :{\" id\" :\" am9obg\" ,\" name\" :\" john\" ,\" displayName\" :\" john\" },\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" pubKeyCredParams\" :[{\" type\" :\" public-key\" ,\" alg\" :-7},{\" type\" :\" public-key\" ,\" alg\" :-65535}],\" timeout\" :10000,\" excludeCredentials\" :[],\" authenticatorSelection\" :{\" authenticatorAttachment\" :\" cross-platform\" ,\" requireResidentKey\" :false,\" residentKey\" :\" preferred\" ,\" userVerification\" :\" preferred\" },\" attestation\" :\" direct\" ,\" extensions\" :{\" uvm\" :true,\" credProps\" :true,\" extensionProvider\" :\" /webauthn/attestation/options\" ,\" unknown\" :true}}" ))
142142 .andExpect (status ().isOk ());
143143 }
144144
@@ -154,7 +154,7 @@ public void assertionOptionsEndpointPath_with_authenticated_user_test() throws E
154154 .andDo (item ->
155155 item .getResponse ().getContentAsString ()
156156 )
157- .andExpect (content ().json ("{\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" timeout\" :20000,\" rpId\" :\" example.com\" ,\" allowCredentials\" :[],\" userVerification\" :\" preferred\" ,\" extensions\" :{\" appid\" :\" appid\" ,\" appidExclude\" :\" appidExclude\" ,\" uvm\" :true,\" extensionProvider\" :\" /webauthn/assertion/options\" ,\" unknown\" :true}}" , true ))
157+ .andExpect (content ().json ("{\" challenge\" :\" aFglXMZdQTKD4krvNzJBzA\" ,\" timeout\" :20000,\" rpId\" :\" example.com\" ,\" allowCredentials\" :[],\" userVerification\" :\" preferred\" ,\" extensions\" :{\" appid\" :\" appid\" ,\" appidExclude\" :\" appidExclude\" ,\" uvm\" :true,\" extensionProvider\" :\" /webauthn/assertion/options\" ,\" unknown\" :true}}" ))
158158 .andExpect (status ().isOk ());
159159 }
160160
0 commit comments