Replies: 1 comment
-
The answer turns out to be oauth_client.register(
"my_app",
server_metadata_url="http://example.com/.well-known/openid-configuration",
client_id='my_client_id',
client_secret='my_client_secret',
request_token_params={"grant_type": "client_credentials"},
client_kwargs={"verify": verify} # <---
) I feel a bit stupid now :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm using the Starlette OAuth client like this:
This client eventually uses the
AsyncOAuth2Client
fromauthlib/integrations/httpx_client/oauth2_client.py
. There it initializesAsyncClient.__init__(self, **client_kwargs)
which is from thehttpx
library.Now I'm trying to configure one of the
**client_kwargs
, specifically theverify
kwarg (which is present inHTTPX_CLIENT_KWARGS
). I've spent a few hours trying, reading the source code, but I don't see a way to pass these kwargs through eitherOAuth()
orOAuth().register()
.For example I've tried these configurations:
To no avail -
AsyncClient.__init__
call is done withoutverify
.Does anyone know if this is possible? As far as I can tell this is not documented, and there isn't a related usecase in the demo apps or unittests.
I'll start going through the code with a debugger, eventually I should find the answer and post it back here.
Beta Was this translation helpful? Give feedback.
All reactions