lepture / authlib

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
https://authlib.org/
BSD 3-Clause "New" or "Revised" License
4.49k stars 448 forks source link

docs: Update openID client userinfo usage #534

Closed LudvigHz closed 1 year ago

LudvigHz commented 1 year ago

What kind of change does this PR introduce? (check at least one)

The documentation on obtaining userinfo through the OpenID userinfo endpoint seems to be incorrect, as the userinfo method both does not expect positional arguments, and the request should in all cases require a token?

I would suggest changing the function signature to include the token kwarg explicitly, as it is in the request method. Let me know and I'll update this PR to include that as well.


lepture commented 1 year ago

Thanks