-
Notifications
You must be signed in to change notification settings - Fork 141
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
Specify kid when provided for JWT #339
Specify kid when provided for JWT #339
Conversation
headers = {} | ||
|
||
# # Check if kid was supplied | ||
if kid: |
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.
Check if kid was provided in client config
if not, check in private key
ed45f4e
to
65f6e7d
Compare
# check if kid is provided in config - set if so | ||
kid = self._config["client"]["kid"] if "kid" in self._config["client"] else None | ||
|
||
return JWT.create_token(org_url, client_id, private_key) | ||
return JWT.create_token(org_url, client_id, private_key, kid) |
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.
Checking for a key id in the config and using it if provided
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.
🚢
Allow for JWT to be encoded with kid in headers when provided by user
Addressing #289