@@ -24,7 +24,7 @@ pub trait OAuth2ClientRepository: Send + Sync {
24
24
/// The error type returned by the repository
25
25
type Error ;
26
26
27
- /// Lookup an OAuth2 client by its ID
27
+ /// Lookup an OAuth client by its ID
28
28
///
29
29
/// Returns `None` if the client does not exist
30
30
///
@@ -37,15 +37,15 @@ pub trait OAuth2ClientRepository: Send + Sync {
37
37
/// Returns [`Self::Error`] if the underlying repository fails
38
38
async fn lookup ( & mut self , id : Ulid ) -> Result < Option < Client > , Self :: Error > ;
39
39
40
- /// Find an OAuth2 client by its client ID
40
+ /// Find an OAuth client by its client ID
41
41
async fn find_by_client_id ( & mut self , client_id : & str ) -> Result < Option < Client > , Self :: Error > {
42
42
let Ok ( id) = client_id. parse ( ) else {
43
43
return Ok ( None ) ;
44
44
} ;
45
45
self . lookup ( id) . await
46
46
}
47
47
48
- /// Find an OAuth2 client by its metadata digest
48
+ /// Find an OAuth client by its metadata digest
49
49
///
50
50
/// Returns `None` if the client does not exist
51
51
///
@@ -62,7 +62,7 @@ pub trait OAuth2ClientRepository: Send + Sync {
62
62
digest : & str ,
63
63
) -> Result < Option < Client > , Self :: Error > ;
64
64
65
- /// Load a batch of OAuth2 clients by their IDs
65
+ /// Load a batch of OAuth clients by their IDs
66
66
///
67
67
/// Returns a map of client IDs to clients. If a client does not exist, it
68
68
/// is not present in the map.
@@ -79,7 +79,7 @@ pub trait OAuth2ClientRepository: Send + Sync {
79
79
ids : BTreeSet < Ulid > ,
80
80
) -> Result < BTreeMap < Ulid , Client > , Self :: Error > ;
81
81
82
- /// Add a new OAuth2 client
82
+ /// Add a new OAuth client
83
83
///
84
84
/// Returns the client that was added
85
85
///
0 commit comments