Skip to content

Commit 4d565f4

Browse files
GH-37: Fix invalid_client KOE010 issue (GH-39)
2 parents 24f890d + fa12536 commit 4d565f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/fastapi_oauth2/core.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ async def token_data(self, request: Request, **httpx_client_args) -> dict:
107107
scheme = "http" if request.auth.http else "https"
108108
authorization_response = re.sub(r"^https?", scheme, str(request.url))
109109

110-
oauth2_query_params = dict(redirect_url=redirect_uri, authorization_response=authorization_response)
110+
oauth2_query_params = dict(
111+
redirect_url=redirect_uri,
112+
client_secret=self.client_secret,
113+
authorization_response=authorization_response,
114+
)
111115
oauth2_query_params.update(request.query_params)
112116

113117
token_url, headers, content = self._oauth_client.prepare_token_request(

0 commit comments

Comments
 (0)