django-authentication

django rest framework social-auth with jwt

最后都变了- 提交于 2020-07-05 04:52:29
问题 hi im working on SPA django rest framework with jwt and angular 5 . i built login and sign up section. now im looking for a way to add social login or register to my app and have jwt support after deep search i found some module that have very unclear document(atleast to me).. this module https://github.com/st4lk/django-rest-social-auth looks ok he said use: /api/login/social/jwt_user/ and: /api/login/social/jwt/ are end point for jwt but this get me nothing when i'm using them.. we had some

django rest framework social-auth with jwt

吃可爱长大的小学妹 提交于 2020-07-05 04:52:16
问题 hi im working on SPA django rest framework with jwt and angular 5 . i built login and sign up section. now im looking for a way to add social login or register to my app and have jwt support after deep search i found some module that have very unclear document(atleast to me).. this module https://github.com/st4lk/django-rest-social-auth looks ok he said use: /api/login/social/jwt_user/ and: /api/login/social/jwt/ are end point for jwt but this get me nothing when i'm using them.. we had some

How do I authenticate users with Django REST framework and React.js frontend?

别说谁变了你拦得住时间么 提交于 2020-06-27 15:09:11
问题 I am making a website with django rest in the backend and react.js in the frontend. This will be my first time using a front end framework with django. I am using django-allauth for social auth on the backend (facebook/twitter/google). Once the user is signed in through a web session (using allauth) via a 3rd party provider (facebook) how do I pass that data to my react app? Do I grab the facebook token, authenticate it, then generate an oauth2/jwt token and store that somehow? Is there some

How do I authenticate users with Django REST framework and React.js frontend?

孤街浪徒 提交于 2020-06-27 15:07:28
问题 I am making a website with django rest in the backend and react.js in the frontend. This will be my first time using a front end framework with django. I am using django-allauth for social auth on the backend (facebook/twitter/google). Once the user is signed in through a web session (using allauth) via a 3rd party provider (facebook) how do I pass that data to my react app? Do I grab the facebook token, authenticate it, then generate an oauth2/jwt token and store that somehow? Is there some

Django/Auth: Can request.user be exploited and point to other user?

ぃ、小莉子 提交于 2020-06-25 18:09:25
问题 Let's say i have a form that does something in database and requires user authentication that has been sent by POST, is it possible inside request someone evil to change the user in order to exploit the system? The following example creates an item in database but requires a logged in user. Can someone send other user's data in request.user ? from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from items_core.models import Item from items

Django/Auth: Can request.user be exploited and point to other user?

你。 提交于 2020-06-25 18:06:13
问题 Let's say i have a form that does something in database and requires user authentication that has been sent by POST, is it possible inside request someone evil to change the user in order to exploit the system? The following example creates an item in database but requires a logged in user. Can someone send other user's data in request.user ? from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from items_core.models import Item from items