Save open id session
This commit is contained in:
@@ -43,4 +43,12 @@ pub const FAIL_LOGIN_ATTEMPT_CLEANUP_INTERVAL: Duration = Duration::from_secs(60
|
||||
pub const TEMPORARY_PASSWORDS_LEN: usize = 20;
|
||||
|
||||
/// Open ID routes
|
||||
pub const AUTHORIZE_URI: &str = "/openid/authorize";
|
||||
pub const AUTHORIZE_URI: &str = "/openid/authorize";
|
||||
|
||||
/// Open ID constants
|
||||
pub const OPEN_ID_SESSION_CLEANUP_INTERVAL: Duration = Duration::from_secs(60);
|
||||
pub const OPEN_ID_SESSION_LEN: usize = 40;
|
||||
pub const OPEN_ID_AUTHORIZATION_CODE_LEN: usize = 120;
|
||||
pub const OPEN_ID_AUTHORIZATION_CODE_TIMEOUT: u64 = 300;
|
||||
pub const OPEN_ID_TOKEN_LEN: usize = 120;
|
||||
pub const OPEN_ID_TOKEN_TIMEOUT: u64 = 3600;
|
Reference in New Issue
Block a user