Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShopモデルへのGoogle認証機能追加 #92

Open
kazu-0226 opened this issue Oct 9, 2020 · 3 comments · Fixed by #98
Open

ShopモデルへのGoogle認証機能追加 #92

kazu-0226 opened this issue Oct 9, 2020 · 3 comments · Fixed by #98

Comments

@kazu-0226
Copy link
Owner

kazu-0226 commented Oct 9, 2020

概要

userモデルにGoogle認証機能追加したが、複数モデルに対応していないため、
手段を検討

目的

ShopモデルへのGoogle認証機能追加

提案内容

devise + omniauthableをやめる

タスク

検討中

@kazu-0226
Copy link
Owner Author

https://github.com/heartcombo/devise/wiki/OmniAuth-with-multiple-models

上記に基づき作成したが、usersとshopsの判別ができない
get "/auth/google_oauth2" => "users/omniauth_callbacks#passthru"

@kazu-0226
Copy link
Owner Author

heartcombo/devise#1047

上記に基づいて、リクエストの際にtypeを渡して、users/omniauth_callbacksの中で処理を分ける

@kazu-0226 kazu-0226 linked a pull request Oct 11, 2020 that will close this issue
@kazu-0226
Copy link
Owner Author

力技のため、念のためクローズしない

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant