1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Authnz common library.
//!
//! Contains common types and utils for Impulse Authnz server & SDKs.
pub use *;
pub use *;
/// Sign header name.
///
/// Used to sign app requests and Authnz server responses.
pub const SIGN: &str = "Authnz-Sign";
/// Stateless hints header name.
///
/// Provides signed hints and stateless checks on user registration to avoid DoS attacks.
pub const SIGNUP_HINTS: &str = "Authnz-Hints";
/// Client challenge token header name.
///
/// Used to store challenge signed by Authnz server during client token update process.
pub const CLIENT_CHALLENGE_TOKEN: &str = "Authnz-Challenge-State";
/// Client challenge header name.
///
/// Used to transfer challenge to client during client token update process.
pub const CLIENT_CHALLENGE: &str = "Authnz-Challenge";
/// Client challenge sign header name.
///
/// Used to transfer challenge sign to Authnz server during client token update process.
pub const CLIENT_CHALLENGE_SIGN: &str = "Authnz-Challenge-Sign";
/// Access token header/cookie name.
pub const ACCESS_TOKEN: &str = "Authnz-Access";
/// Refresh token header/cookie name.
pub const REFRESH_TOKEN: &str = "Authnz-Refresh";
/// Client token header/cookie name.
pub const CLIENT_TOKEN: &str = "Authnz-Client";
/// Forwarded from header name.
pub const FORWARDED_FROM: &str = "Authnz-Forwarded-From";
pub use chrono;