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 66
77
88class OAuth2Client :
9+ """OAuth2 client configuration for a single provider."""
10+
911 backend : Type [BaseOAuth2 ]
1012 client_id : str
1113 client_secret : str
Original file line number Diff line number Diff line change 66
77
88class OAuth2Config :
9+ """Configuration class of the authentication middleware."""
10+
911 allow_http : bool
1012 jwt_secret : str
1113 jwt_expires : int
Original file line number Diff line number Diff line change 2020
2121
2222class 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."""
2624
2725
2826class OAuth2Strategy (BaseStrategy ):
27+ """Dummy strategy for using the `BaseOAuth2.user_data` method."""
28+
2929 def request_data (self , merge = True ):
3030 return {}
3131
You can’t perform that action at this time.
0 commit comments