【问题标题】:Native app (hybrid) to use django-social-auth使用 django-social-auth 的本机应用程序(混合)
【发布时间】:2013-12-04 20:26:32
【问题描述】:

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

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

【问题讨论】:

    标签: python django django-socialauth nativeapplication


    【解决方案1】:

    Python social auth 可用于带 rest 的社交 oauth

    1. 使用 web hello.js 或 satellizer 或任何本机模块(simpleauth 等)使用客户端流检索 oauth 令牌(访问令牌)

    2. 使用 ajax 请求将 access_token 发送到 django 以登录或注册新用户。 https://python-social-auth.readthedocs.io/en/latest/use_cases.html#signup-by-oauth-access-token

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-07
      • 1970-01-01
      • 1970-01-01
      • 2016-09-05
      • 1970-01-01
      • 1970-01-01
      • 2021-02-14
      • 1970-01-01
      相关资源
      最近更新 更多