You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add resource to the Request._params whitelist in oauthlib/common.py, enabling request.resource attribute access for the RFC 8707 Resource Indicators parameter.
Currently, if a client sends resource=https://api.example.com in the POST body to /token, the value is parsed into decoded_body but is not accessible via request.resource because resource is not in the _params dictionary. This is the same class of RFC-defined parameter as code_challenge (RFC 7636) and nonce (OIDC Core), both of which are already in the whitelist.
Additional context
Applies to OAuth2 server side
One-line change: adding "resource": None to Request._params
Activity
Add `resource` to Request._params
Add `resource` to Request._params