File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 16
16
from starlette .requests import Request
17
17
from starlette .responses import RedirectResponse
18
18
19
+ from .claims import Claims
19
20
from .client import OAuth2Client
20
21
21
22
@@ -47,6 +48,7 @@ class OAuth2Core:
47
48
client_secret : str = None
48
49
callback_url : Optional [str ] = None
49
50
scope : Optional [List [str ]] = None
51
+ claims : Optional [Claims ] = None
50
52
backend : BaseOAuth2 = None
51
53
_oauth_client : Optional [WebApplicationClient ] = None
52
54
@@ -56,7 +58,8 @@ class OAuth2Core:
56
58
def __init__ (self , client : OAuth2Client ) -> None :
57
59
self .client_id = client .client_id
58
60
self .client_secret = client .client_secret
59
- self .scope = client .scope or self .scope
61
+ self .scope = client .scope
62
+ self .claims = client .claims
60
63
self .provider = client .backend .name
61
64
self .redirect_uri = client .redirect_uri
62
65
self .backend = client .backend (OAuth2Strategy ())
You can’t perform that action at this time.
0 commit comments