Allow passing custom headers to metadata request in authorize_redirect by AlexandrosMaragkakis · Pull Request #710 · authlib/authlib
This pull request implements a feature to allow custom HTTP headers to be passed to the metadata request made by authorize_redirect().
Previously (#633), when calling authorize_redirect(redirect_uri, headers=headers), the custom headers were not forwarded to the GET request for server metadata, causing a 401 Unauthorized error when the endpoint was protected by a security gateway.
What kind of change does this PR introduce? (check at least one)
- Bugfix
- Feature
- Code style update
- Refactor
- Other, please describe:
Does this PR introduce a breaking change? (check one)
- Yes
- No
- You consent that the copyright of your pull request source code belongs to Authlib's author.