Native app (hybrid) to use django-social-auth

280 views Asked by At

I already have implemented social authentication using facebook and google in my web application (Django + used django-social-auth). I want my native app built with (Kendo UI + Icenium) to re-use the Oauth from my web application.

What is the best way to do this? I've used django-tastypie in my web app, but not sure how i can integrate rest API with Oauth.

1

There are 1 answers

0
pratyush On

Python social auth can be used to for social oauth with rest

  1. Retrieve oauth token(access token) using client side flow using for web hello.js or satellizer or any native module(simpleauth etc)

  2. Use a ajax request to send access_token to django for signing in or registering new user. https://python-social-auth.readthedocs.io/en/latest/use_cases.html#signup-by-oauth-access-token