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
0
votes
1 answer

Internal Server Error when trying to log in with Facebook to Django server

I have a Django REST server which I updated recently from using Python 2.7 to 3.4. The server uses Django REST framework on top of Django, with django-allauth and django-rest-auth for Facebook login support. Now, after the update, I cannot login to…
0
votes
2 answers

Django-Allauth and django-facebook to retrieve Facebook profile images

I integrated django-rest-auth and django-allauth for user registration/login using Facebook. Now, I can authenticate (and I can create) the Facebook user and I can retrieve some basic informations like e-mail, first name, last name... Now I need…
0
votes
1 answer

Django Rest not creating extended UserProfile

I'm using Django Rest Framework and I've created an extended UserProfile model as follows: class UserProfile(models.Model): user = models.OneToOneField(User) #Some Fields for UserProfile def user_profile_url(self): return…
Newtt
  • 6,050
  • 13
  • 68
  • 106
-1
votes
1 answer

Login with django rest auth and mongodb

im very new to python and django. Currently experimenting on django-rest-auth and mongodb. So, im trying to set up a login and registration page. The registration works , ie save users in the DB, although i have this error TypeError at…
-1
votes
1 answer

Expire a token in 24 hours - django-rest-knox

I am using django-rest-knox for token authentication in my Django REST Framework app. What I want is to make the token expire only if 24 hours are passed. Is there any setting that it can make this thing happen. Thanks
FightWithCode
  • 2,190
  • 1
  • 13
  • 24
-1
votes
1 answer

How can I update the email address using the confirmation code in Django?

I use all the functionalities of dj-rest-auth to register, log in, confirm the email address, change the password, reset the password and many more. Unfortunately, the library does not support changing the email address. I would like the…
-1
votes
1 answer

why django rest framework wants auth token for every request

I just started using django rest framework. I tested a single view function and it worked. @api_view(['GET', ]) def test_api(request): if request.method == 'GET': data = {} data['response'] = 'Test!' return…
-1
votes
2 answers

How can password2 be null in django rest auth registration

I don't want to write password2 in the rest auth. So I want to use RegisterSerializer to remove the value of password2, what can I do?
leedjango
  • 411
  • 2
  • 9
  • 18
-1
votes
1 answer

How to customize the rest auth in django

I want to erase username, password2 field from rest auth and add nickname and profile image. So we made the code as follows, but Nickname and profile image were added normally, but username and password2 were not erased. How can I erase them? Here…
-1
votes
1 answer

disadvantages to using ACCOUNT_CONFIRM_EMAIL_ON_GET

using Django rest-auth and allauth, using a rest api. I have ACCOUNT_CONFIRM_EMAIL_ON_GET=True. the documentation it gave a warning about this. Are there any major disadvantages to this? this method seems to be perfect for me and i would like to…
Opeyemi Odedeyi
  • 766
  • 1
  • 10
  • 38
-1
votes
1 answer

“No such table: accounts_user” after migrating and creating super user in Django

I am creating a rest API using Django-rest-auth, and I have a custom user model in an app named accounts. the problem is after making migrations when I try creating a superuser in the console after I input the email in the email field, I get a…
-1
votes
1 answer

Creating an REST API Django

The first thing that I would like to say is that I have no previous experience with python and any framework python related. However, I have programming experience. So, I want to create a REST API using python with frameworks django and…
Alec
  • 414
  • 6
  • 21
-2
votes
2 answers

django-rest-auth handling expired confirmation email

I am using django-rest-auth and django-allauth to handle user authentication in my rest api. When a user tries to verify their email after the link has expired, I get an unpleasant error page. Please, how can I display a better error page or send…
-2
votes
1 answer

django user registration error with django_rest_auth package

i used django rest auth in my project,but i get these error when i try to create a new user [WinError 10061] No connection could be made because the target machine actively refused it
Udemezue John
  • 128
  • 2
  • 12
1 2 3
38
39