File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
class OAuth2Client :
9
+ """OAuth2 client configuration for a single provider."""
10
+
9
11
backend : Type [BaseOAuth2 ]
10
12
client_id : str
11
13
client_secret : str
Original file line number Diff line number Diff line change 6
6
7
7
8
8
class OAuth2Config :
9
+ """Configuration class of the authentication middleware."""
10
+
9
11
allow_http : bool
10
12
jwt_secret : str
11
13
jwt_expires : int
Original file line number Diff line number Diff line change 20
20
21
21
22
22
class OAuth2LoginError (HTTPException ):
23
- """Raised when any login-related error occurs
24
- (such as when user is not verified or if there was an attempt for fake login)
25
- """
23
+ """Raised when any login-related error occurs."""
26
24
27
25
28
26
class OAuth2Strategy (BaseStrategy ):
27
+ """Dummy strategy for using the `BaseOAuth2.user_data` method."""
28
+
29
29
def request_data (self , merge = True ):
30
30
return {}
31
31
You can’t perform that action at this time.
0 commit comments