Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
cdeefba39a
commit
491ec81298
@ -21,6 +21,7 @@ use serde_json::json;
|
|||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct ZitadelAuthParams {
|
pub struct ZitadelAuthParams {
|
||||||
|
#[allow(dead_code)]
|
||||||
return_url: Option<String>,
|
return_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ impl Auth for NoopAuthService {
|
|||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn login_token(&self, user: &str, password: &str) -> anyhow::Result<String> {
|
async fn login_token(&self, _user: &str, _password: &str) -> anyhow::Result<String> {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +125,7 @@ impl IntrospectionStateBuilder {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn with_jwt_profile(&mut self, application: Application) -> &mut IntrospectionStateBuilder {
|
pub fn with_jwt_profile(&mut self, application: Application) -> &mut IntrospectionStateBuilder {
|
||||||
self.authentication = Some(AuthorityAuthentication::JWTProfile { application });
|
self.authentication = Some(AuthorityAuthentication::JWTProfile { application });
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
use axum::{http::StatusCode, response::IntoResponse, Json};
|
use axum::{http::StatusCode, response::IntoResponse, Json};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum AppError {
|
pub enum AppError {
|
||||||
WrongCredentials,
|
WrongCredentials,
|
||||||
|
Loading…
Reference in New Issue
Block a user