-
Notifications
You must be signed in to change notification settings - Fork 913
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
[KYUUBI #3705] Add docs for JDBC authentication usage with in-memory database #3706
Conversation
Followed with #3701 , and please consider merging to master and 1.6 . |
kyuubi.authentication.jdbc.query = SELECT 1 FROM (SELECT ${user} as username, 'secret_key' as secret_key, SUBSTRING(${password}, 0, 12) as expire_time, SUBSTRING(${password}, 13) as signed | ||
) WHERE signed = RAWTOHEX(HASH('MD5', CONCAT(secret_key, username, expire_time))) AND PARSEDATETIME(expire_time,'yyyyMMddHHmm') > NOW(); | ||
``` |
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.
Kyuubi conf file support using back slash to set multi-lines value
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.
Thanks, updated as suggested.
Thanks, merging to master/1.6 |
…database ### _Why are the changes needed?_ to close #3705 . Add docs for JDBC authentication usage with in-memory database with config example for token validation example. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3706 from bowenliang123/jdbc-inmem. Closes #3705 3de9bce [Bowen Liang] use backslash for multi-line config value 26a4d1b [Bowen Liang] nit e078e98 [Bowen Liang] add JDBC auth usage with in-memory db for token validation 67624fa [liangbowen] init jdbc inmem doc Lead-authored-by: Bowen Liang <liangbowen@gf.com.cn> Co-authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: Cheng Pan <chengpan@apache.org> (cherry picked from commit 738e351) Signed-off-by: Cheng Pan <chengpan@apache.org>
Why are the changes needed?
to close #3705 .
Add docs for JDBC authentication usage with in-memory database with config example for token validation example.
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request