Search in sources :

Example 1 with FIDOAppIDExtensionClientInput

use of com.webauthn4j.data.extension.client.FIDOAppIDExtensionClientInput in project webauthn4j by webauthn4j.

the class AuthenticationExtensionsClientInputsConverterTest method convert_test.

@Test
void convert_test() {
    String source = "{\"appid\":\"dummy\"}";
    AuthenticationExtensionsClientInputs<AuthenticationExtensionClientInput> clientInputs = authenticationExtensionsClientInputsConverter.convert(source);
    assertThat(clientInputs.getExtension(FIDOAppIDExtensionClientInput.class)).isEqualTo(new FIDOAppIDExtensionClientInput("dummy"));
}
Also used : AuthenticationExtensionClientInput(com.webauthn4j.data.extension.client.AuthenticationExtensionClientInput) FIDOAppIDExtensionClientInput(com.webauthn4j.data.extension.client.FIDOAppIDExtensionClientInput) Test(org.junit.jupiter.api.Test)

Aggregations

AuthenticationExtensionClientInput (com.webauthn4j.data.extension.client.AuthenticationExtensionClientInput)1 FIDOAppIDExtensionClientInput (com.webauthn4j.data.extension.client.FIDOAppIDExtensionClientInput)1 Test (org.junit.jupiter.api.Test)1