File tree Expand file tree Collapse file tree
webauthn/src/test/java/org/springframework/security/web/webauthn/jackson Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,6 +121,23 @@ void readCredPropsWhenAuthenticatorDisplayName() throws Exception {
121121 assertThat (outputs ).usingRecursiveComparison ().isEqualTo (credProps );
122122 }
123123
124+ @ Test
125+ void readAuthenticationExtensionsClientOutputsWhenAppId () {
126+ String json = """
127+ {
128+ "appid": false,
129+ "credProps": {
130+ "rk": false
131+ }
132+ }
133+ """ ;
134+ CredentialPropertiesOutput credProps = new CredentialPropertiesOutput (false );
135+
136+ AuthenticationExtensionsClientOutputs outputs = this .mapper .readValue (json ,
137+ AuthenticationExtensionsClientOutputs .class );
138+ assertThat (outputs .getOutputs ()).usingRecursiveFieldByFieldElementComparator ().contains (credProps );
139+ }
140+
124141 @ Test
125142 void readAuthenticationExtensionsClientOutputsWhenUnknownExtension () {
126143 String json = """
You can’t perform that action at this time.
0 commit comments