简体   繁体   中英

How can one implement twitter oauth2 on a single page application with a django backend

So i have a front end app in angular on one server and a Django app on another using rest

Now i want to have a user click on the signup using twitter button on the front end, but have the backend make the request to twitter with my twitter app credentials safe in the backend, and have the user redirected to the frontend on the same page they made the request at so it all seems like a seamless process

How do i implement this with Django, is there a library that already solves this problem, or is there a technique one can use to have the auth popup appear in the frontend whilst the request was made in the backend

any help is most appreciated

您可以查看django-twitter-oauth以获取Twitter支持,或查看django-social-auth以获取Twitter支持。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM