我不确定如何请求 Django rest-framework Social Oauth2



我正在尝试将Google和Facebook社交身份验证添加到我的DRF api中。我按照自述文件中的步骤操作,我阅读了文档,但我不知道如何从我的反应应用程序请求我的 API - 文档显示了这个 facebook 登录示例:

curl -X POST -d "grant_type=convert_token&client_id=<client_id>&client_secret=<client_scret>&backend=facebook&token=<facebook_token>" http://localhost:8000/auth/convert-token`

我的问题来了 - 我不明白 curl 请求中的"client_secret"是什么?它应该与设置中的SOCIAL_AUTH_FACEBOOK_SECRET相同(从Facebook开发人员网站复制(?

根据他们的文档:

<client_id> and <client_secret> are the keys generated automatically that you can find in the model Application you created.

最新更新