-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
feat(docker): Add support LDAP/AD authorization #24277
Conversation
@craig-rueda Hello! |
requirements/development.in
Outdated
@@ -18,9 +18,11 @@ | |||
# | |||
-r base.in | |||
-e .[cors,druid,hive,mysql,postgres,thumbnails] | |||
Authlib==1.2.0 |
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.
Unfortunately, we can't add authlib
to superset as its license doesn't allow it. :(
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.
@craig-rueda Thanks for the note, the library has been replaced by oauthlib!
requirements/development.txt
Outdated
# | ||
# This file is autogenerated by pip-compile-multi | ||
# To update, run: | ||
# | ||
# pip-compile-multi | ||
# | ||
-r base.txt | ||
-e file:. | ||
-e file:///tmp/superset |
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 doesn't look right
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.
@craig-rueda Thanks, this bug has been fixed!
@craig-rueda Hello! |
@dpgaspar - do these libs look ok to you? |
requirements/development.txt
Outdated
@@ -66,6 +64,8 @@ mccabe==0.6.1 | |||
# via pylint | |||
mysqlclient==2.1.0 | |||
# via apache-superset | |||
oauthlib==3.2.2 |
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.
I don't think you need oauthlib for LDAP
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, I checked - this library is really not needed for ldap to work, after its removal, LDAP works correctly.
Removed from PR.
Thanks for the help!
Hello @dpgaspar! Thanks for your help writing this code! |
@craig-rueda Hello! |
Looks like oauthlib is still in the requirements. I think @dpgaspar mentioned that it wasn't necessary. |
(docker): Add support LDAP/AD authorization
@craig-rueda Thanks for pointing out my mistake, apparently I forgot to add the appropriate commit. |
@craig-rueda Apparently, my code breaks the tests, if I correctly understood the principle of their work, then the last commit should solve the problem with the tests! |
Codecov Report
@@ Coverage Diff @@
## master #24277 +/- ##
==========================================
+ Coverage 68.29% 69.03% +0.73%
==========================================
Files 1957 1901 -56
Lines 75624 74006 -1618
Branches 8223 8115 -108
==========================================
- Hits 51649 51088 -561
+ Misses 21867 20807 -1060
- Partials 2108 2111 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 185 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Add support LDAP/AD authorization
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION