Skip to content

Commit 1e6fe6e

Browse files
committed
Add missing @consumes annotations to demo
1 parent e4bca2e commit 1e6fe6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webauthn-server-demo/src/main/java/demo/webauthn/WebAuthnRestResource.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
package demo.webauthn;
2626

27+
import javax.ws.rs.Consumes;
2728
import javax.ws.rs.DELETE;
2829
import javax.ws.rs.DefaultValue;
2930
import javax.ws.rs.FormParam;
@@ -146,6 +147,7 @@ private StartRegistrationActions() throws MalformedURLException {
146147
}
147148
}
148149

150+
@Consumes("application/x-www-form-urlencoded")
149151
@Path("register")
150152
@POST
151153
public Response startRegistration(
@@ -219,6 +221,8 @@ private final class StartAuthenticationActions {
219221
private StartAuthenticationActions() throws MalformedURLException {
220222
}
221223
}
224+
225+
@Consumes("application/x-www-form-urlencoded")
222226
@Path("authenticate")
223227
@POST
224228
public Response startAuthentication(

0 commit comments

Comments
 (0)