Common problems ● Using user credentials inside the app is a bad idea ● The app might have full access to user account ● User has to change his password to revoke the access
Batteries included ● builtin views to register and manage OAuth2 applications ● form view for user authorization lol I found what DRF stands for omg harold plz retire
Endpoints protection for the lazy ● function views decorators @protected_resource() def my_view(request): # A valid token is required to get here… ● generic class based views class ApiEndpoint(ProtectedResourceView): def get(self, request, *args, **kwargs): return HttpResponse('Hello, OAuth2!')
Future plans - Help needed! OAuth1 support Resource and Authorization server components separation https://github.com/evonove/django-oauth-toolkit +1 for my own PR