Interface MfaService

All Superinterfaces:
JAXRSService

@Path("mfa") public interface MfaService extends JAXRSService
REST operations for MFA management.
  • Method Details

    • generate

      @POST @Path("{username}") @Produces("application/json") org.apache.syncope.common.lib.types.Mfa generate(@NotNull @PathParam("username") @NotNull String username)
      Generate MFA information for the given user.
      Parameters:
      username - username
      Returns:
      MFA information for the given user.
    • enroll

      @PUT @Consumes("application/json") void enroll(org.apache.syncope.common.lib.types.Mfa mfa)
      Store the provided MFA information for the calling user.
      Parameters:
      mfa - MFA information
    • dismiss

      @DELETE void dismiss()
      Dismiss MFA information for the calling user.
    • dismiss

      @DELETE @Path("{username}") void dismiss(@NotNull @PathParam("username") @NotNull String username)
      Dismiss MFA information for the given user.
      Parameters:
      username - username
    • enrolled

      @HEAD @Path("{username}") jakarta.ws.rs.core.Response enrolled(@NotNull @PathParam("username") @NotNull String username)
      Checks if MFA information was enrolled for the given user.
      Parameters:
      username - username
      Returns:
      Response object featuring the boolean result in the 'X-Syncope-Verfied' header
    • check

      @POST @Path("check") @Consumes("application/json") jakarta.ws.rs.core.Response check(org.apache.syncope.common.lib.types.MfaCheck mfaCheck)
      Check the provided OTP against the provided MFA secret.
      Parameters:
      mfaCheck - MFA secret and OTP
      Returns:
      Response object featuring the boolean result in the 'X-Syncope-Verfied' header