|
12 | 12 | import java.util.LinkedHashMap; |
13 | 13 | import java.util.List; |
14 | 14 | import java.util.Map; |
15 | | -import java.util.Objects; |
16 | 15 |
|
17 | 16 | import static org.privacyidea.PIConstants.ASSERTIONCLIENTEXTENSIONS; |
18 | 17 | import static org.privacyidea.PIConstants.ATTRIBUTES; |
19 | 18 | import static org.privacyidea.PIConstants.AUTHENTICATION; |
20 | 19 | import static org.privacyidea.PIConstants.AUTHENTICATORDATA; |
21 | 20 | import static org.privacyidea.PIConstants.CLIENTDATA; |
| 21 | +import static org.privacyidea.PIConstants.CLIENT_MODE; |
22 | 22 | import static org.privacyidea.PIConstants.CODE; |
23 | 23 | import static org.privacyidea.PIConstants.CREDENTIALID; |
24 | 24 | import static org.privacyidea.PIConstants.DETAIL; |
25 | 25 | import static org.privacyidea.PIConstants.ERROR; |
26 | 26 | import static org.privacyidea.PIConstants.ID; |
27 | 27 | import static org.privacyidea.PIConstants.IMAGE; |
28 | | -import static org.privacyidea.PIConstants.IMG; |
29 | 28 | import static org.privacyidea.PIConstants.INFO; |
30 | 29 | import static org.privacyidea.PIConstants.JSONRPC; |
31 | 30 | import static org.privacyidea.PIConstants.MAXFAIL; |
@@ -229,23 +228,24 @@ else if ("interactive".equals(modeFromResponse)) |
229 | 228 | .getAsJsonObject(); |
230 | 229 | String serial = getString(challenge, SERIAL); |
231 | 230 | String message = getString(challenge, MESSAGE); |
232 | | - String image = getItemFromAttributes(IMG, challenge).replaceAll("\"", ""); |
| 231 | + String clientmode = getString(challenge, CLIENT_MODE); |
| 232 | + String image = getString (challenge, IMAGE); |
233 | 233 | String transactionid = getString(challenge, TRANSACTION_ID); |
234 | 234 | String type = getString(challenge, TYPE); |
235 | 235 |
|
236 | 236 | if (TOKEN_TYPE_WEBAUTHN.equals(type)) |
237 | 237 | { |
238 | 238 | String webAuthnSignRequest = getItemFromAttributes(WEBAUTHN_SIGN_REQUEST, challenge); |
239 | | - response.multichallenge.add(new WebAuthn(serial, message, image, transactionid, webAuthnSignRequest)); |
| 239 | + response.multichallenge.add(new WebAuthn(serial, message, clientmode, image, transactionid, webAuthnSignRequest)); |
240 | 240 | } |
241 | 241 | else if (TOKEN_TYPE_U2F.equals(type)) |
242 | 242 | { |
243 | 243 | String u2fSignRequest = getItemFromAttributes(U2F_SIGN_REQUEST, challenge); |
244 | | - response.multichallenge.add(new U2F(serial, message, image, transactionid, u2fSignRequest)); |
| 244 | + response.multichallenge.add(new U2F(serial, message, clientmode, image, transactionid, u2fSignRequest)); |
245 | 245 | } |
246 | 246 | else |
247 | 247 | { |
248 | | - response.multichallenge.add(new Challenge(serial, message, image, transactionid, type)); |
| 248 | + response.multichallenge.add(new Challenge(serial, message, clientmode, image, transactionid, type)); |
249 | 249 | } |
250 | 250 | } |
251 | 251 | } |
|
0 commit comments