-
Notifications
You must be signed in to change notification settings - Fork 16.4k
[AIRFLOW-3753] Replace Flask-OAuthlib with Authlib #6140
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
Conversation
Flask-OAuthlib is deprecated, use Authlib instead.
Codecov Report
@@ Coverage Diff @@
## master #6140 +/- ##
==========================================
+ Coverage 80.02% 80.02% +<.01%
==========================================
Files 607 607
Lines 35032 35041 +9
==========================================
+ Hits 28034 28042 +8
- Misses 6998 6999 +1
Continue to review full report at Codecov.
|
potiuk
left a comment
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 like the change. What worries me a bit is that there are no tests covering the functionality. I don't think there are tests covering the original oauthlib but maybe that's an opportunity to introduce some tests - mocking the behaviour of the oauth ?
| @@ -216,9 +216,7 @@ def write_version(filename: str = os.path.join(*["airflow", "git_version"])): | |||
| ] | |||
| grpc = ['grpcio>=1.15.0'] | |||
| flask_oauth = [ | |||
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 think it should be renamed to "oauth" :)
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.
Can I change this name? It was named flask_oauth.
|
@potiuk It will take me some time to figure out how to write tests for airflow. Maybe in next week. |
|
Hey @lepture - will you have chance to work on it soon :) ? |
|
@potiuk I'm afraid that I don't have time right now to figure out how to write the tests. |
|
Ok. I see and understand. Maybe I will try to take a look at that then :). |
|
@potiuk if there is an example that would help a lot. I can't find any similar tests. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Make sure you have checked all steps below.
Jira
Description
Flask-OAuthlib is deprecated, use Authlib instead. Updated Google and GitHub Enterprise OAuth backends.
Tests
Commits
Documentation