Skip to content
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

Add support for Druid Basic Auth to SQLAlchemy #149

Merged
merged 3 commits into from
Mar 19, 2019

Conversation

donbowman
Copy link
Contributor

This adds support for basic authentication (in the same
format as the other sqlalchemy drivers)
druid://USER:PASSWORD@localhost:8082/druid/v2/sql/

Signed-off-by: Don Bowman [email protected]

pydruid/db/api.py Outdated Show resolved Hide resolved
pydruid/db/api.py Outdated Show resolved Hide resolved
pydruid/db/api.py Outdated Show resolved Hide resolved
Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor tweaks requested, otherwise LGTM

@donbowman
Copy link
Contributor Author

are there additional changes needed?

@donbowman
Copy link
Contributor Author

before i rebase this again, is there anything else needed?

This adds support for basic authentication (in the same
format as the other sqlalchemy drivers)
`druid://USER:PASSWORD@localhost:8082/druid/v2/sql/`

Signed-off-by: Don Bowman <[email protected]>
Originally I had this as '' since it means the auth could always be
included. Now 'None' is used and no auth header is presented if
no user/password is specified.
@mistercrunch mistercrunch merged commit f7c50c7 into druid-io:master Mar 19, 2019
@mistercrunch
Copy link
Member

Thank you for this contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants