Add /openid/token
route
This commit is contained in:
@@ -44,11 +44,14 @@ pub const TEMPORARY_PASSWORDS_LEN: usize = 20;
|
||||
|
||||
/// Open ID routes
|
||||
pub const AUTHORIZE_URI: &str = "/openid/authorize";
|
||||
pub const TOKEN_URI: &str = "/openid/token";
|
||||
|
||||
/// 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;
|
||||
pub const OPEN_ID_ACCESS_TOKEN_LEN: usize = 120;
|
||||
pub const OPEN_ID_ACCESS_TOKEN_TIMEOUT: u64 = 3600;
|
||||
pub const OPEN_ID_REFRESH_TOKEN_LEN: usize = 120;
|
||||
pub const OPEN_ID_REFRESH_TOKEN_TIMEOUT: u64 = 360000;
|
Reference in New Issue
Block a user