webauthn
: Add route stubs
This commit is contained in:
parent
3c42f974da
commit
c068f763bb
5 changed files with 30 additions and 5 deletions
acrate_webauthn/src
|
@ -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()
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
use axum::http::StatusCode;
|
||||
|
||||
pub async fn handler(
|
||||
) -> Result<StatusCode, StatusCode> {
|
||||
log::warn!("Not implemented");
|
||||
Err(StatusCode::NOT_IMPLEMENTED)
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
use axum::http::StatusCode;
|
||||
|
||||
pub async fn handler(
|
||||
) -> Result<StatusCode, StatusCode> {
|
||||
log::warn!("Not implemented");
|
||||
Err(StatusCode::NOT_IMPLEMENTED)
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
use axum::http::StatusCode;
|
||||
|
||||
pub async fn handler(
|
||||
) -> Result<StatusCode, StatusCode> {
|
||||
log::warn!("Not implemented");
|
||||
Err(StatusCode::NOT_IMPLEMENTED)
|
||||
}
|
Loading…
Add table
Reference in a new issue