Class PasscodeEndpoint

java.lang.Object
com.broadleafcommerce.auth.user.web.endpoint.PasscodeEndpoint

@FrameworkRestController @FrameworkMapping("/passcode") public class PasscodeEndpoint extends Object
Author:
Cade Rea (cade-rea)
  • Field Details

  • Constructor Details

  • Method Details

    • retrieve

      @Policy(permissionRoots="PASSCODE", operationTypes=CREATE) @FrameworkGetMapping("/retrieve") public com.broadleafcommerce.auth.user.web.endpoint.PasscodeEndpoint.PasscodeResponse retrieve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestParam("client_id") String clientId, @RequestParam("purpose") String purpose, @RequestParam("username") String username)
    • consume

      @Policy(permissionRoots="PASSCODE", operationTypes=UPDATE) @FrameworkPostMapping(path="/consume", consumes="application/x-www-form-urlencoded") public com.broadleafcommerce.auth.user.web.endpoint.PasscodeEndpoint.PasscodeResponse consume(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestParam("client_id") String clientId, @RequestParam("passcode") String passcode, @RequestParam("purpose") String purpose, @RequestParam("username") String username) throws PasscodeNotConsumedException
      Throws:
      PasscodeNotConsumedException
    • passcodeConsumptionErrorHandler

      @ResponseStatus(code=BAD_REQUEST, reason="Passcode not consumed.") @ExceptionHandler(PasscodeNotConsumedException.class) protected void passcodeConsumptionErrorHandler()
    • status

      @Policy(permissionRoots="PASSCODE", operationTypes=READ) @FrameworkGetMapping("/status") public com.broadleafcommerce.auth.user.web.endpoint.PasscodeEndpoint.PasscodeStatusResponse status(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestParam("passcode_id") String passcodeId)
    • invalidate

      @Policy(permissionRoots="PASSCODE", operationTypes=DELETE) @FrameworkPostMapping(path="/invalidate", consumes="application/x-www-form-urlencoded") public com.broadleafcommerce.auth.user.web.endpoint.PasscodeEndpoint.PasscodeStatusResponse invalidate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestParam("passcode_id") String passcodeId)
    • getUser

      protected User getUser(@RequestParam("client_id") String clientId, @RequestParam("username") String username)
    • getPasscodeService

      protected PasscodeService<PasswordToken,User> getPasscodeService()
    • getUserService

      protected UserService<User> getUserService()