Django-rest-auth provides a set of REST API endpoints for Authentication and Registration

Overview
Comments
  • JWT support

    JWT support

    From #122 to support JWT

    Documentation probably needs some updates and I'd like the implementation approved, but submitting the pull now to start the discussion.

    opened by jgr3go 19
  • Error with Social Authentication (Facebook): NoReverseMatch: Reverse for 'socialaccount_signup'

    Error with Social Authentication (Facebook): NoReverseMatch: Reverse for 'socialaccount_signup'

    Hello, I enabled Facebook login following documentation but I'm getting the same error described here: https://github.com/pennersr/django-allauth/issues/558

    What am I missing? Thanks in advance.

    opened by eriol 16
  • Checking for pre-existing accounts from a different flow when using social connect

    Checking for pre-existing accounts from a different flow when using social connect

    This fixes the following flow:

    • user creates an account with normal signup
    • user signs out
    • user tries to login with a social account that has the same email address

    Linked to https://github.com/Tivix/django-rest-auth/issues/78

    opened by philippeluickx 14
  • Release 0.8.0

    Release 0.8.0

    0.8.0 was merged in #147, but hasn't been tagged in github & released on pypi (or docs generated). I don't think I have the permissions to do so, so this is just to track when it's complete.

    opened by jgr3go 13
  • Work with DRF 3.5

    Work with DRF 3.5

    With the new DRF 3.5, django-rest-auth seems to break and needs something similar to:

    "get_queryset()" added to UserDetailViews.

    Can we please get an updated version that runs correctly on 3.5?

    opened by oboingo 12
  • how can i override django-rest-auth options?

    how can i override django-rest-auth options?

    in login, i want:

    1. email
    2. password
    3. username(i want to remove it)

    in signup

    1. first_name & last_name ( i want to add it)
    2. username ( i want to remove it)
    3. email
    4. password

    I have same configuration on django-allauth.

    opened by piyushmaurya23 12
  • Social login with VK

    Social login with VK

    Hi,

    I have endpoints for social login with Facebook and VK. Facebook login works perfect. But adapter for VK is little bit different and it needs also uid to complete login. Is there way to configure SocialLoginSerializer like other serializer, so I can override it?

    Thank you.

    opened by gorros 12
  • Implement connect social accounts functionality

    Implement connect social accounts functionality

    Hi @ducheneaut,

    I opened an issue #347 a while back and got a few upvotes for implementing social connect functionality in django-rest-auth core.

    We've used this connect functionality for quite a while in production and it functions quite nicely. Others have reported it works perfectly as well, so I think this has been validated and proven useful.

    If someone wishes to contribute the documentation and / or tests, that would be nice, though the change set is so limited it probably doesn't need much testing. The list and disconnect viewset is probably the most interesting thing that should be tested, and some documentation could be added on the usage of the new components :)

    opened by aleksihakli 11
  • Logout view change permission_classes

    Logout view change permission_classes

    Shouldn't the LogoutView have permission_classes set to permission_classes = (IsAuthenticated,) instead of permission_classes = (AllowAny,) , regardless of GET/POST method ?

    • in addition in the logout function:
     def logout(self, request):
        try:
                request.user.auth_token.delete()
          except (AttributeError, ObjectDoesNotExist):
                pass
    

    should be changed to

       def logout(self, request):
            try:
                request.user.auth_token.delete()
            except (AttributeError, ObjectDoesNotExist):
                # handle NotAuthenticated
    
    opened by shaklev 11
  • allauth>=0.25.0 :   __init__() takes exactly 2 arguments (1 given) error

    allauth>=0.25.0 : __init__() takes exactly 2 arguments (1 given) error

    Internal Server Error: /rest-auth/facebook/
    Traceback (most recent call last):
      File "/Users/mywork/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
        response = self.process_exception_by_middleware(e, request)
      File "/Users/mywork/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
        response = wrapped_callback(request, *callback_args, **callback_kwargs)
      File "/Users/mywork/venv/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
        return view_func(*args, **kwargs)
      File "/Users/mywork/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
        return self.dispatch(request, *args, **kwargs)
      File "/Users/mywork/venv/lib/python2.7/site-packages/rest_framework/views.py", line 466, in dispatch
        response = self.handle_exception(exc)
      File "/Users/mywork/venv/lib/python2.7/site-packages/rest_framework/views.py", line 463, in dispatch
        response = handler(request, *args, **kwargs)
      File "/Users/mywork/venv/lib/python2.7/site-packages/rest_auth/views.py", line 50, in post
        self.serializer.is_valid(raise_exception=True)
      File "/Users/mywork/venv/lib/python2.7/site-packages/rest_framework/serializers.py", line 213, in is_valid
        self._validated_data = self.run_validation(self.initial_data)
      File "/Users/mywork/venv/lib/python2.7/site-packages/rest_framework/serializers.py", line 410, in run_validation
        value = self.validate(value)
      File "/Users/mywork/venv/lib/python2.7/site-packages/rest_auth/registration/serializers.py", line 63, in validate
        adapter = adapter_class()
    TypeError: __init__() takes exactly 2 arguments (1 given)
    

    I just follow installation

    from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
    from rest_auth.registration.views import SocialLoginView
    
    class FacebookLogin(SocialLoginView):
        adapter_class = FacebookOAuth2Adapter
    
    urlpatterns = [
    ...
            url(r'^rest-auth/', include('rest_auth.urls')),
        url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),
        url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='fb_login'),
    
    ]
    
    opened by nvcken 11
  • Can't override

    Can't override "password_reset_key_message.txt"

    I'm having issues overriding the default email for the "forgot password". I can override the 2 email for "email confirmation" without any issue but not with this one.

    Not matter the extension, the one sent is always the default one that comes with the package.

    Thanks

    opened by MadReal 10
  • The package doesn't work with django 4.0.*

    The package doesn't work with django 4.0.*

    in https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/urls.py you used " from django.conf.urls import url " but it's removed from django and makes some problems

    opened by roham96 0
  • The package doesn't work with django 4.0.*

    The package doesn't work with django 4.0.*

    when trying to install the recent version of django-rest-authwith Django 4 since it uses the deprecated function ugettext_lazy from django.utils.translation the error :

      File "/path/to/views/views.py", line 8, in <module>
        from rest_auth.registration.serializers import SocialLoginSerializer
      File "/path/to/python3.8/site-packages/rest_auth/registration/serializers.py", line 2, in <module>
        from django.utils.translation import ugettext_lazy as _
    ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/path/to/venv/lib/python3.8/site-packages/django/utils/translation/__init__.py)
    
    opened by hamza-hadda 1
  • ImportError: cannot import name 'url' from 'django.conf.urls'

    ImportError: cannot import name 'url' from 'django.conf.urls'

    (env_universal) [email protected] DRF_test % python manage.py makemigrations Traceback (most recent call last): File "/Users/usama/Desktop/projects/DRF_test/manage.py", line 22, in main() File "/Users/usama/Desktop/projects/DRF_test/manage.py", line 18, in main execute_from_command_line(sys.argv) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/management/init.py", line 446, in execute_from_command_line utility.execute() File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/management/init.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/management/base.py", line 414, in run_from_argv self.execute(*args, **cmd_options) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/management/base.py", line 455, in execute self.check() File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/management/base.py", line 487, in check all_issues = checks.run_checks( File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/checks/registry.py", line 88, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/checks/urls.py", line 14, in check_url_config return check_resolver(resolver) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/core/checks/urls.py", line 24, in check_resolver return check_method() File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/urls/resolvers.py", line 480, in check for pattern in self.url_patterns: File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/utils/functional.py", line 49, in get res = instance.dict[self.name] = self.func(instance) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/urls/resolvers.py", line 696, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/utils/functional.py", line 49, in get res = instance.dict[self.name] = self.func(instance) File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/urls/resolvers.py", line 689, in urlconf_module return import_module(self.urlconf_name) File "/usr/local/Cellar/[email protected]/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/Users/usama/Desktop/projects/DRF_test/buzzshare/urls.py", line 8, in path('rest-auth/', include('rest_auth.urls')), File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/urls/conf.py", line 38, in include urlconf_module = import_module(urlconf_module) File "/usr/local/Cellar/[email protected]/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/rest_auth/urls.py", line 1, in from django.conf.urls import url ImportError: cannot import name 'url' from 'django.conf.urls' (/Users/usama/Desktop/projects/env_universal/lib/python3.9/site-packages/django/conf/urls/init.py) (env_universal) [email protected] DRF_test % pip install django-rest-auth

    Is it not compatible with django 4

    opened by UsamaHaide0786 2
Releases(0.9.5)
Owner
Tivix
We are a global software consultancy, headquartered in Silicon Valley (San Francisco) with additional offices in Portland, NYC, and Europe.
Tivix
A minimalistic manga reader for desktop built with React and Django

smanga A minimalistic manga reader/server for serving local manga images on desktop browser. Provides a two-page view layout just as reading a physica

Padam Upreti 13 Sep 24, 2022
RESTful Todolist API

RESTful Todolist API GET todolist/ POST todolist/ {"desc" : "Description of task to do"} DELETE todolist/int:id PUT todolist/int:id Requirements D

Gabriel Tavares 5 Dec 20, 2021
RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.

Microsoft 1.8k Jan 04, 2023
DSpace REST API Client Library

DSpace Python REST Client Library This client library allows Python 3 scripts (Python 2 probably compatible but not officially supported) to interact

The Library Code GmbH 10 Nov 21, 2022
Django REST API with React BoilerPlate

This is a setup of Authentication and Registration Integrated with React.js inside the Django Templates for web apps

Faisal Nazik 91 Dec 30, 2022
A Django-powered API with various utility apps / endpoints.

A Django-powered API Includes various utility apps / endpoints. Demos These web apps provide a frontend to the APIs in this project. Issue API Explore

Shemar Lindie 0 Sep 13, 2021
Browsable web APIs for Flask.

Flask API Browsable web APIs for Flask. Status: This project is in maintenance mode. The original author (Tom Christie) has shifted his focus to API S

Flask API 1.3k Dec 27, 2022
Allows simplified Python interaction with Rapid7's InsightIDR REST API.

InsightIDR4Py Allows simplified Python interaction with Rapid7's InsightIDR REST API. InsightIDR4Py allows analysts to query log data from Rapid7 Insi

Micah Babinski 8 Sep 12, 2022
Built on Django Rest Framework, to provide with command execution on linux terminal

Built on Django Rest Framework, to provide with command execution on linux terminal

1 Oct 31, 2021
REST API framework designed for human beings

Eve Eve is an open source Python REST API framework designed for human beings. It allows to effortlessly build and deploy highly customizable, fully f

eve 6.6k Jan 04, 2023
The Web API toolkit. 🛠

🛠 The Web API toolkit. 🛠 Community: https://discuss.apistar.org 🤔 💭 🤓 💬 😎 Documentation: https://docs.apistar.com 📘 Requirements: Python 3.6+

Encode 5.6k Dec 27, 2022
Document Web APIs made with Django Rest Framework

DRF Docs Document Web APIs made with Django Rest Framework. View Demo Contributors Wanted: Do you like this project? Using it? Let's make it better! S

Manos Konstantinidis 626 Nov 20, 2022
A simple API example in Python (Flask framework)

API-Example A simple API in Python(Flask) ✨ Features An API i guess? 💁‍♀️ How to use first download the main.py install python then install flask fra

Portgas D Ace 2 Jan 06, 2022
Turn your API made with Django REST Framework(DRF) into a GraphQL like API.

Turn your API made with Django REST Framework(DRF) into a GraphQL like API.

Yezy Ilomo 575 Jan 05, 2023
Estudo e desenvolvimento de uma API REST

Estudo e desenvolvimento de uma API REST 🧑‍💻 Tecnologias Esse projeto utilizará as seguintes tecnologias: Git Python Flask DBeaver Vscode SQLite 🎯

Deusimar 7 May 30, 2022
Generate Views, Serializers, and Urls for your Django Rest Framework application

DRF Generators Writing APIs can be boring and repetitive work. Don't write another CRUDdy view in Django Rest Framework. With DRF Generators, one simp

Tobin Brown 332 Dec 17, 2022
REST implementation of Django authentication system.

djoser REST implementation of Django authentication system. djoser library provides a set of Django Rest Framework views to handle basic actions such

Sunscrapers 2.2k Jan 01, 2023
Transparently use webpack with django

Looking for maintainers This repository is unmaintained as I don't have any free time to dedicate to this effort. If you or your organisation are heav

2.4k Dec 24, 2022
Authentication Module for django rest auth

django-rest-knox Authentication Module for django rest auth Knox provides easy to use authentication for Django REST Framework The aim is to allow for

James McMahon 873 Dec 30, 2022