-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Moved OAuth support out of DRF and into a separate package. #1840
Conversation
Nice! Milestoning for 3.0 - we shouldn't merge this just yet until we've had a bit of a chance to test it all out. I'd suggest pinging the mailing list about the current status of the work you've done here... https://groups.google.com/forum/#!topic/django-rest-framework/HAq4qVfYec4 Ideally if we could get one or two folks to help test if out that'd be great. |
@thedrow For one thing, we need to continue to support folks already using this OAuth package.
That may happen, yup. |
I've pinged the mailing list about testing this but haven't gotten any replies. Also, I'd like to start working to migrate django-rest-framework-oauth to oauthlib (or maybe oauthlib via django-oauth-toolkit) soon. If anyone wants to contribute toward that, PRs are always welcome. |
I was still meaning to get back to you on that. :) |
Just one question — can we not merge this against the 3.0 branch now, rather than against master sometime later? |
@carltongibson - Possibly, meaning to raise this on the discussion group. I've been considering that a better strategy wrt easing migration pains of users might be to leave this (and any other move-out-of-core stuff that might crop up) to 3.1. That would seem to present an easier upgrade path to me. 3.0 will be all the necessarily backwards-compat breaking stuff, but we'd be keeping that the changes as minimal as possible. 3.1 should then be a trivial upgrade step as with previous median point releases. Bundling this into 3.0 runs the risk of folks attempting to upgrade, getting stuck on something, and then not being sure if the problem is due to 3.0 API changes or due to misconfiguration. (Hope I've explained adequately there) Not fully decided, but pushing this in 3.1 would seem to present an incremental series of smaller steps for upgrades. |
Yeah. All makes sense. Not sure either way myself — it's just a For me it would be nice to have the PR merged (on some branch). Folks will check that out and run into issues as the time approaches, where they might not check out a PR itself. (But again, who knows...) |
Sure, wouldn't have any problem merging this into a 3.1 branch, that'd make sense. |
@jlafon I've created a version-3.1 branch from 3.0. Can I ask you to update and create a new pull request with these changes against that? (Pull the latest in from the branch; push and pick that branch when comparing on GitHub.) We'll get this merged in there — Thanks for the effort. Top work! |
Closes #1767.
This work came from a sprint at DjangoCon 2014.
This PR removes all functionality and tests for OAuth 1.0a and 2.0 from DRF (see #1767). The same functionality has been ported to the Django REST Framework OAuth package. I plan on updating the DRF OAuth package to use oauthlib, which is actively maintained and supports Python 3.