-
Notifications
You must be signed in to change notification settings - Fork 22
feat: add jwt auth (#524) #855
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
Apologizes, I seemed to have requested reviews from incorrect maintainers. Please let me know if I’ve requested the right people if you know. if there’s anything needed for the PR or changes, also please let me know. Thank you! |
@@ -35,6 +35,12 @@ export class BasicAuth implements Auth { | |||
constructor(readonly username: string, readonly password?: string) {} | |||
} | |||
|
|||
export class JwtAuth implements Auth { |
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.
This is not a correct implementation. It should be closer to the implementation like the one in the python client: https://github.com/trinodb/trino-python-client/blob/df08367b54d7d27c1cd826ca3fa34ca0173f4c63/trino/auth.py#L295
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.
Issue
Adds a simple Auth for JWT (accessToken in Trino JDBC)
Added very simple test to validate JWT is being passed correctly through the client.
Bumped
package.json
version for release.