Questions tagged [django-rest-auth]

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

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

Features

  • User Registration with activation
  • Login/Logout
  • Retrieve/Update the Django User model
  • Password change
  • Password reset via e-mail
  • Social Media authentication

Resources

Documentation: https://django-rest-auth.readthedocs.io/en/latest/

GitHub repo: https://github.com/Tivix/django-rest-auth

jQuery demo: https://github.com/Tivix/django-rest-auth/tree/master/demo

AngularJS demo: https://github.com/Tivix/angular-django-registration-auth

584 questions
5
votes
1 answer

django-rest-auth authentication not working

I wanted a simple api authentication route using django-rest-framework and 'django-rest-auth`. The register part is working fine as confirmed by the default django admin console and i can also see the users. Unluckily the api authentication keeps on…
georoot
  • 3,557
  • 1
  • 30
  • 59
5
votes
1 answer

Using Django REST Framework as an authentication backend for Django

I currently have a large Django project leveraging Django REST Framework. I have another, smaller Django project that I would like to build off of the main one that doesn't share the database directly but rather grabs necessary data over API. I…
5
votes
1 answer

django-allauth returns error Reverse for 'account_confirm_email' with arguments '()' and keyword arguments '{}' not found

I am using django-allauth along with django rest-auth. here is the stacktrace: [2016-02-15 23:45:35,093] ERROR [base:handle_uncaught_exception:256 8977] Internal Server Error: /api/rest-auth/registration/ Traceback (most recent call last): …
Divick
  • 1,213
  • 1
  • 20
  • 44
5
votes
2 answers

restrict django rest framework APIs to my mobile and web apps

What is the recommended way to restrict my django rest framework APIs to be available to my mobile and web apps only ? I'm using django-rest-auth to authenticate my users. There are some APIs that can be accessed anonymously. But I need to make sure…
user4848830
  • 779
  • 12
  • 22
5
votes
3 answers

Django Rest Framework - Why is a 200 status code returned when trying to login a user using incorrect credentials?

This is my URLs.py: url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), I have a form on my homepage where users can type a username and password. When the submit button is clicked,…
SilentDev
  • 20,997
  • 28
  • 111
  • 214
4
votes
1 answer

How to set token expiration time when using django-rest-authtoken?

I'm using the django-rest-authtoken library (https://github.com/wichmannpas/django-rest-authtoken) to manage my API users. The biggest inconvenience is that the user authentication tokens expire in 24 hours, effectively requiring to perform login…
4
votes
0 answers

Using Django admin application AND disabling session middleware?

I am building a django server for an API that relies on JWT (or Token based - https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication) authentication for our users. I don't need session based authentication for any…
4
votes
0 answers

Configure Apple login in Django rest framework with Allauth and rest-auth

I'm using Django + Django Rest Framework for a project for RESTful services to a mobile APPs. Now I have to integrate Apple-login. For social-login I already using Allauth + Allauth Socialaccount + rest-auth for Facebook login. As reported into…
4
votes
0 answers

Is Django already has a built-in microservice architecture?

I am working on a Django Project, but now it's going enormously large. I am thinking to convert it to microservice architecture but I found that Django also has a related architecture, apart from having a common database. So my question is, Is…
4
votes
1 answer

Apple login in django rest framework with allauth and rest-auth

I have implemented Apple login in django with allauth and rest-auth. I implemented same way as Google login which worked perfectly. views.py class AppleLogin(SocialLoginView): adapter_class = AppleOAuth2Adapter urls.py urlpatterns = [ …
4
votes
1 answer

How can I exclude rest-auth endpoint from the Django built-in API documentation?

To hide the endpoint in the Django documentation just @schema(None) has to be added for example to GenericAPIView, however I have a problem with these two urls: url(r'^rest-auth/', include('rest_auth.urls')), url(r'^rest-auth/registration/',…
4
votes
0 answers

Password reset link not redirecting to website

I'm trying to implement password reset functionality in my React app with django rest framework. I am using rest_auth. Issue: Once I tried to reset my password from website, It sends password reset link to email. But on clicking that link it…
ConAra
  • 271
  • 5
  • 18
4
votes
1 answer

How to connect accounts with Django rest auth / all auth?

I'm using Django rest-auth for authentication and account creation with Django rest framework. Currently, I have six providers set up and I'd like to start connecting them. It's not clear from the documentation (either rest-auth or all-auth) what I…
HPJM
  • 517
  • 8
  • 17
4
votes
2 answers

Django-rest-auth HTML email for password reset

Is it possible to send password reset email in HTML in django-rest-auth? By default, HTML emails are disabled, and send in simple text from password_reset_email.html template. I have copied template to project structure templates, and can easily…
Lamak
  • 101
  • 2
  • 9
4
votes
1 answer

Where I can take access_token and token_secret for twitter

Maybe my question is very stupid. But I couldn't find the answer neither in the official documentation of rest-auth nor there in questions. I want to use authentication through Twitter. I created the app in Twitter, put all the data into the model…
savao
  • 103
  • 7