[英]Using django-oauth-toolkit with Django 2.x
I've built a web application using django 2.0 and django-rest-framework. 我已经使用django 2.0和django-rest-framework构建了一个Web应用程序。 In my web app, I've been using django-rest-framework's SessionAuthentication
. 在我的Web应用程序中,我一直在使用django-rest-framework的SessionAuthentication
。
I'm in the early stages of building out a supporting mobile app and based on my findings so far, there's a lot of value in doing the extra work to implement some sort of OAuth authentication: 我正处于构建支持的移动应用程序的早期阶段,根据到目前为止的发现,进行额外的工作以实现某种OAuth身份验证有很多价值:
I was hoping to use django-oath-toolkit for this, but I noticed in the docs that there's no django 2.x support. 我希望为此使用django-oath-toolkit ,但我在文档中注意到没有django 2.x支持。 I want to avoid refactoring my app using django 1.x, so two questions: 我想避免使用django 1.x重构应用程序,因此有两个问题:
The docs might be out of date. 该文档可能已过时。 If you look at official repo release notes, you can see it supports django 2.x starting from 1.2.0 如果您查看正式的回购发行说明,则可以看到它从1.2.0开始支持django2.x。
Ref: https://github.com/jazzband/django-oauth-toolkit/blob/master/CHANGELOG.md#120-2018-06-03 参考: https : //github.com/jazzband/django-oauth-toolkit/blob/master/CHANGELOG.md#120-2018-06-03
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.