chore: add changes to use openid with casdoor for Single Sign-On
This commit is contained in:
parent
7c8994cd34
commit
7cc24d167d
@ -14,6 +14,7 @@ mod mailer;
|
|||||||
mod totp_mode;
|
mod totp_mode;
|
||||||
mod totp_algorithm;
|
mod totp_algorithm;
|
||||||
mod app_connect_info;
|
mod app_connect_info;
|
||||||
|
mod openid;
|
||||||
|
|
||||||
pub(crate) use appdbs::AppDBs;
|
pub(crate) use appdbs::AppDBs;
|
||||||
pub(crate) use session::{
|
pub(crate) use session::{
|
||||||
@ -43,6 +44,8 @@ pub(crate) use totp_mode::{TotpMode, deserialize_totp_mode};
|
|||||||
|
|
||||||
pub(crate) use app_connect_info::AppConnectInfo;
|
pub(crate) use app_connect_info::AppConnectInfo;
|
||||||
|
|
||||||
|
pub(crate) use openid::{OpenidConf,OpenidData,collect_openid_clients,OpenidCli};
|
||||||
|
|
||||||
pub const TOKEN_KEY_VALUE: &str = "tii-cl";
|
pub const TOKEN_KEY_VALUE: &str = "tii-cl";
|
||||||
pub const TOKEN_AUTH_VALUE: &str = "tii-cl-token";
|
pub const TOKEN_AUTH_VALUE: &str = "tii-cl-token";
|
||||||
pub const CLAIM_UID: &str = "uid";
|
pub const CLAIM_UID: &str = "uid";
|
||||||
|
@ -71,6 +71,8 @@ pub struct UserLogin {
|
|||||||
pub password: String,
|
pub password: String,
|
||||||
#[serde(default = "default_empty")]
|
#[serde(default = "default_empty")]
|
||||||
pub otp_auth: String,
|
pub otp_auth: String,
|
||||||
|
#[serde(default = "default_empty")]
|
||||||
|
pub email: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default,Deserialize,Serialize,Debug,Clone)]
|
#[derive(Default,Deserialize,Serialize,Debug,Clone)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user