Closed lycantropos closed 1 year ago
@lepture https://github.com/lepture/authlib/pull/552 is ready for review.
I was going nuts trying to add a x5t
header for https://learn.microsoft.com/en-us/azure/active-directory/develop/certificate-credentials#assertion-format until I found this. I'm happy to see a PR ready for it. 👀
FWIW, @dhallam's #552 is working for me. With pip install git+https://github.com/dhallam/authlib@bug/515-rfc7523-apply-headers-while-signing
I was finally able to get my access_token.
https://github.com/lepture/authlib/pull/552 is merged.
Describe the bug
In commit 49c5556d8b2c7e4b8939e502fefd816bf766dfc3
headers
parameter got re-introduced (previously known asheader
) and it is passed toclient_secret_jwt_sign
function call inClientSecretJWT.sign
method, but it is not passed toprivate_key_jwt_sign
function call inPrivateKeyJWT.sign
method, why is it so?Also both
client_secret_jwt_sign
&private_key_jwt_sign
eventually callsign_jwt_bearer_assertion
which doesn't haveheaders
parameter, but onlyheader
, so it looks to be skipped, is it expected?Expected behavior
headers
parameter is passed toprivate_key_jwt_sign
function call inPrivateKeyJWT.sign
methodEnvironment:
1.2.0