@ApplicationScoped
@Path("/v2")
public class NewSecondFactorUserWS
extends Object
-
Constructor Summary
Constructors
-
Method Summary
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NewSecondFactorUserWS
public NewSecondFactorUserWS()
-
Method Details
-
available
@GET
@Path("config/authn-methods/available")
@Produces("application/json")
public jakarta.ws.rs.core.Response available()
-
get2FAUserData
@GET
@Path("2fa/user-info/{userid}")
@Produces("application/json")
public jakarta.ws.rs.core.Response get2FAUserData(@PathParam("userid")
String userId,
@QueryParam("m")
List<String> restrictToMethods)
-
switch2FA
@POST
@Path("2fa/turn-on/{userid}")
public jakarta.ws.rs.core.Response switch2FA(@PathParam("userid")
String userId,
@FormParam("preference")
String method)