File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11from typing import Optional
22from typing import Sequence
33from typing import Type
4+ from typing import Union
45
56from social_core .backends .oauth import BaseOAuth2
67
8+ from .claims import Claims
9+
710
811class OAuth2Client :
912 """OAuth2 client configuration for a single provider."""
@@ -13,6 +16,7 @@ class OAuth2Client:
1316 client_secret : str
1417 redirect_uri : Optional [str ]
1518 scope : Optional [Sequence [str ]]
19+ claims : Optional [Union [Claims , dict ]]
1620
1721 def __init__ (
1822 self ,
@@ -22,9 +26,11 @@ def __init__(
2226 client_secret : str ,
2327 redirect_uri : Optional [str ] = None ,
2428 scope : Optional [Sequence [str ]] = None ,
29+ claims : Optional [Union [Claims , dict ]] = None ,
2530 ) -> None :
2631 self .backend = backend
2732 self .client_id = client_id
2833 self .client_secret = client_secret
2934 self .redirect_uri = redirect_uri
3035 self .scope = scope or []
36+ self .claims = Claims (claims )
You can’t perform that action at this time.
0 commit comments