1

我找不到任何有关使用 devise-token-auth实现https://developers.google.com/identity/sign-in/web/server-side-flow的文档。我只有 Rails 5 API 应用程序。如果没有解决方法是什么?谢谢。

4

1 回答 1

0

Devise Token Auth 文档有一个 oauth setup 部分。请按照此处的说明进行操作:

https://github.com/lynndylanhurley/devise_token_auth#omniauth-authentication

你会想要使用这个提供者:

https://github.com/zquestz/omniauth-google-oauth2

于 2017-11-30T16:30:22.110 回答