-
-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServiceApplicationClient: Add extra_jwt_headers #865
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add some unit tests for this? it is needed
a69d95d
to
d5c93e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets wait for the CI
All checks have passed. @auvipy, can you merge it? |
@@ -68,6 +68,7 @@ def prepare_request_body(self, | |||
audience=None, | |||
expires_at=None, | |||
issued_at=None, | |||
extra_jwt_headers=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it needed for any specific specification or for a particular API/use case only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standard header parameters are defined in RFC 7515. In this document, "kid"
is defined, but also other parameters that may be meaningfully used here.
lets wait for review from another maintainer |
This is needed to use the Zitadel token endpoint that needs an extra
"kid"
header with ServiceApplicationClient.I named the parameter
extra_jwt_headers
(not justextra_headers
) to disambiguate it from HTTP headers.