Class PasskeysPageController

java.lang.Object
com.irurueta.authserver.authorization.api.web.passkeys.PasskeysPageController
All Implemented Interfaces:
PasskeysPageApi

@Controller public class PasskeysPageController extends Object implements PasskeysPageApi
Renders the account page where the signed-in user registers passkeys. The registration itself is the WebAuthn ceremony of the security chain, driven by the script of the page; this page only lists what is registered.
  • Field Details

    • PASSKEYS_PATH

      public static final String PASSKEYS_PATH
      Path of the page, taken from the contract.
      See Also:
    • VIEW_NAME

      static final String VIEW_NAME
      Name of the template of the page.
      See Also:
    • PASSKEYS_ATTRIBUTE

      static final String PASSKEYS_ATTRIBUTE
      Name of the model attribute that holds the passkeys already registered.
      See Also:
    • currentAccountResolver

      private final CurrentAccountResolver currentAccountResolver
      Resolves the account of the request.
    • listPasskeysUseCase

      private final ListPasskeysUseCase listPasskeysUseCase
      Lists the passkeys of an account.
    • passkeyViewMapper

      private final PasskeyViewMapper passkeyViewMapper
      Maps the passkeys onto the view model.
    • pageRenderer

      private final PageRenderer pageRenderer
      Renders the page.
  • Constructor Details

    • PasskeysPageController

      public PasskeysPageController()
  • Method Details

    • passkeysPage

      public org.springframework.http.ResponseEntity<String> passkeysPage()
      Renders the page.
      Specified by:
      passkeysPage in interface PasskeysPageApi
      Returns:
      the passkeys page, with the passkeys of the signed-in user.