1
Fork 0

webauthn: Add route stubs

This commit is contained in:
Steffo 2025-02-17 11:18:28 +01:00
parent 3c42f974da
commit c068f763bb
Signed by: steffo
GPG key ID: 6B8E18743E7E1F86
5 changed files with 30 additions and 5 deletions

View file

@ -11,7 +11,11 @@ async fn main() {
on: *config::ACRATE_WEBAUTHN_BIND_ADDRESS(),
templates: [],
routes: {
"/.healthcheck" => get(routes::healthcheck::handler)
"/.healthcheck" => get(routes::healthcheck::handler),
"/register/start" => get(routes::registration_start::handler),
"/register/finish" => get(routes::registration_finish::handler),
"/authenticate/finish" => get(routes::authentication_start::handler),
"/authenticate/finish" => get(routes::authentication_finish::handler)
},
layers: {
ext::ext_webauthn()

View file

@ -0,0 +1,7 @@
use axum::http::StatusCode;
pub async fn handler(
) -> Result<StatusCode, StatusCode> {
log::warn!("Not implemented");
Err(StatusCode::NOT_IMPLEMENTED)
}

View file

@ -0,0 +1,7 @@
use axum::http::StatusCode;
pub async fn handler(
) -> Result<StatusCode, StatusCode> {
log::warn!("Not implemented");
Err(StatusCode::NOT_IMPLEMENTED)
}

View file

@ -1,5 +1,5 @@
pub mod healthcheck;
mod registration_start;
mod registration_finish;
mod authentication_start;
mod authentication_finish;
pub mod registration_start;
pub mod registration_finish;
pub mod authentication_start;
pub mod authentication_finish;

View file

@ -0,0 +1,7 @@
use axum::http::StatusCode;
pub async fn handler(
) -> Result<StatusCode, StatusCode> {
log::warn!("Not implemented");
Err(StatusCode::NOT_IMPLEMENTED)
}