@@ -53,14 +53,14 @@ impl MockClientBuilder {
53
53
/// The client is registered with the OAuth 2.0 API.
54
54
#[ cfg( feature = "experimental-oidc" ) ]
55
55
pub fn registered_with_oauth ( mut self , issuer : impl Into < String > ) -> Self {
56
- self . auth_state = AuthState :: RegisteredWithOauth { issuer : issuer. into ( ) } ;
56
+ self . auth_state = AuthState :: RegisteredWithOAuth { issuer : issuer. into ( ) } ;
57
57
self
58
58
}
59
59
60
60
/// The user is already logged in with the OAuth 2.0 API.
61
61
#[ cfg( feature = "experimental-oidc" ) ]
62
62
pub fn logged_in_with_oauth ( mut self , issuer : impl Into < String > ) -> Self {
63
- self . auth_state = AuthState :: LoggedInWithOauth { issuer : issuer. into ( ) } ;
63
+ self . auth_state = AuthState :: LoggedInWithOAuth { issuer : issuer. into ( ) } ;
64
64
self
65
65
}
66
66
@@ -102,10 +102,10 @@ enum AuthState {
102
102
LoggedInWithMatrixAuth ,
103
103
/// The client is registered with the OAuth 2.0 API.
104
104
#[ cfg( feature = "experimental-oidc" ) ]
105
- RegisteredWithOauth { issuer : String } ,
105
+ RegisteredWithOAuth { issuer : String } ,
106
106
/// The client is logged in with the OAuth 2.0 API.
107
107
#[ cfg( feature = "experimental-oidc" ) ]
108
- LoggedInWithOauth { issuer : String } ,
108
+ LoggedInWithOAuth { issuer : String } ,
109
109
}
110
110
111
111
impl AuthState {
@@ -118,12 +118,12 @@ impl AuthState {
118
118
client. matrix_auth ( ) . restore_session ( mock_matrix_session ( ) ) . await . unwrap ( ) ;
119
119
}
120
120
#[ cfg( feature = "experimental-oidc" ) ]
121
- AuthState :: RegisteredWithOauth { issuer } => {
121
+ AuthState :: RegisteredWithOAuth { issuer } => {
122
122
let issuer = url:: Url :: parse ( & issuer) . unwrap ( ) ;
123
123
client. oauth ( ) . restore_registered_client ( issuer, oauth:: mock_client_id ( ) ) ;
124
124
}
125
125
#[ cfg( feature = "experimental-oidc" ) ]
126
- AuthState :: LoggedInWithOauth { issuer } => {
126
+ AuthState :: LoggedInWithOAuth { issuer } => {
127
127
client
128
128
. oauth ( )
129
129
. restore_session ( oauth:: mock_session (
0 commit comments