mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-03-12 16:11:43 +01:00
Add types for responding to Authentication requests.
This commit is contained in:
parent
23691eb746
commit
c179017f96
@ -5,3 +5,5 @@
|
|||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub mod schema;
|
pub mod schema;
|
||||||
pub use schema::*;
|
pub use schema::*;
|
||||||
|
|
||||||
|
mod openapi;
|
||||||
|
16
api/src/openapi/authentication_rest.rs
Normal file
16
api/src/openapi/authentication_rest.rs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/// Code generated by ogen, converted via Copilot and rewritten manually.
|
||||||
|
pub mod openapi {
|
||||||
|
pub struct AuthenticationMethod(String);
|
||||||
|
|
||||||
|
pub struct BasicAuth {
|
||||||
|
pub username: String,
|
||||||
|
pub password: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod responses {
|
||||||
|
|
||||||
|
pub struct Unauthorized {
|
||||||
|
pub www_authenticate: Option<String>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
api/src/openapi/mod.rs
Normal file
1
api/src/openapi/mod.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
mod authentication_rest;
|
Loading…
x
Reference in New Issue
Block a user