chore: add changes to use openid with casdoor for Single Sign-On
This commit is contained in:
parent
7c8994cd34
commit
7cc24d167d
src
@ -14,6 +14,7 @@ mod mailer;
|
||||
mod totp_mode;
|
||||
mod totp_algorithm;
|
||||
mod app_connect_info;
|
||||
mod openid;
|
||||
|
||||
pub(crate) use appdbs::AppDBs;
|
||||
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 openid::{OpenidConf,OpenidData,collect_openid_clients,OpenidCli};
|
||||
|
||||
pub const TOKEN_KEY_VALUE: &str = "tii-cl";
|
||||
pub const TOKEN_AUTH_VALUE: &str = "tii-cl-token";
|
||||
pub const CLAIM_UID: &str = "uid";
|
||||
|
@ -70,7 +70,9 @@ pub struct UserLogin {
|
||||
#[serde(default = "default_empty")]
|
||||
pub password: String,
|
||||
#[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)]
|
||||
|
Loading…
Reference in New Issue
Block a user