File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ async def login_redirect(self, request: Request) -> RedirectResponse:
87
87
redirect_uri = redirect_uri ,
88
88
)), 303 )
89
89
90
- async def token_redirect (self , request : Request ) -> RedirectResponse :
90
+ async def token_redirect (self , request : Request , ** httpx_client_args ) -> RedirectResponse :
91
91
if not request .query_params .get ("code" ):
92
92
raise OAuth2LoginError (400 , "'code' parameter was not found in callback request" )
93
93
if not request .query_params .get ("state" ):
@@ -109,7 +109,7 @@ async def token_redirect(self, request: Request) -> RedirectResponse:
109
109
"Content-Type" : "application/x-www-form-urlencoded" ,
110
110
})
111
111
auth = httpx .BasicAuth (self .client_id , self .client_secret )
112
- async with httpx .AsyncClient () as session :
112
+ async with httpx .AsyncClient (** httpx_client_args ) as session :
113
113
response = await session .post (token_url , headers = headers , content = content , auth = auth )
114
114
try :
115
115
self ._oauth_client .parse_request_body_response (json .dumps (response .json ()))
You can’t perform that action at this time.
0 commit comments