You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
OIDC account linking and login
This commit is contained in:
@ -45,6 +45,7 @@ pub struct UpstreamOAuthAuthorizationSession {
|
||||
pub nonce: String,
|
||||
pub created_at: DateTime<Utc>,
|
||||
pub completed_at: Option<DateTime<Utc>>,
|
||||
pub consumed_at: Option<DateTime<Utc>>,
|
||||
}
|
||||
|
||||
impl UpstreamOAuthAuthorizationSession {
|
||||
@ -52,4 +53,9 @@ impl UpstreamOAuthAuthorizationSession {
|
||||
pub const fn completed(&self) -> bool {
|
||||
self.completed_at.is_some()
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub const fn consumed(&self) -> bool {
|
||||
self.consumed_at.is_some()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user