Class PasskeysPageController
java.lang.Object
com.irurueta.authserver.authorization.api.web.passkeys.PasskeysPageController
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final CurrentAccountResolverResolves the account of the request.private final ListPasskeysUseCaseLists the passkeys of an account.private final PageRendererRenders the page.(package private) static final StringName of the model attribute that holds the passkeys already registered.static final StringPath of the page, taken from the contract.private final PasskeyViewMapperMaps the passkeys onto the view model.(package private) static final StringName of the template of the page.Fields inherited from interface com.irurueta.authserver.authorization.api.web.pages.v1.generated.api.PasskeysPageApi
PATH_PASSKEYS_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String> Renders the page.
-
Field Details
-
PASSKEYS_PATH
Path of the page, taken from the contract.- See Also:
-
VIEW_NAME
Name of the template of the page.- See Also:
-
PASSKEYS_ATTRIBUTE
Name of the model attribute that holds the passkeys already registered.- See Also:
-
currentAccountResolver
Resolves the account of the request. -
listPasskeysUseCase
Lists the passkeys of an account. -
passkeyViewMapper
Maps the passkeys onto the view model. -
pageRenderer
Renders the page.
-
-
Constructor Details
-
PasskeysPageController
public PasskeysPageController()
-
-
Method Details
-
passkeysPage
Renders the page.- Specified by:
passkeysPagein interfacePasskeysPageApi- Returns:
- the passkeys page, with the passkeys of the signed-in user.
-