diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-11 17:11:39 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-11 17:11:39 -0600 |
| commit | 5ffc9b007ccbd8a4510b58de72aaee53291d7973 (patch) | |
| tree | f696a2a7599926d402c5456c434bd87e5e325c3a /src/oauth/server.rs | |
| parent | dbd3c780f27bd5bee23adf6e280b84d669230e0d (diff) | |
refactor: apply SOLID principles
Diffstat (limited to 'src/oauth/server.rs')
| -rw-r--r-- | src/oauth/server.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/oauth/server.rs b/src/oauth/server.rs index 7fd8b9c..37c3cbc 100644 --- a/src/oauth/server.rs +++ b/src/oauth/server.rs @@ -1,12 +1,12 @@ -use crate::clients::{parse_basic_auth, ClientManager}; +use crate::clients::{ClientManager, parse_basic_auth}; use crate::config::Config; use crate::database::{Database, DbAccessToken, DbAuditLog, DbAuthCode}; use crate::keys::KeyManager; -use crate::oauth::pkce::{verify_code_challenge, CodeChallengeMethod}; +use crate::oauth::pkce::{CodeChallengeMethod, verify_code_challenge}; use crate::oauth::types::{Claims, ErrorResponse, TokenIntrospectionResponse, TokenResponse}; -use anyhow::{anyhow, Result}; +use anyhow::{Result, anyhow}; use chrono::{Duration, Utc}; -use jsonwebtoken::{encode, Algorithm, Header}; +use jsonwebtoken::{Algorithm, Header, encode}; use sha2::{Digest, Sha256}; use std::collections::HashMap; use std::sync::{Arc, Mutex}; |
