6

我已经在我的 Web 应用程序中使用 facebook 和 google 实现了社交身份验证(Django + 使用了 django-social-auth)。我希望使用 (Kendo UI + Icenium) 构建的本机应用程序可以重用我的 Web 应用程序中的 Oauth。

做这个的最好方式是什么?我在我的网络应用程序中使用了 django-tastypie,但不确定如何将 rest API 与 Oauth 集成。

4

1 回答 1

0

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

于 2016-09-15T07:45:22.147 回答