We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GoogleOAuthの仕様を調査して可能であれば実際に実装をしてみる。
The text was updated successfully, but these errors were encountered:
今確認したところ、Googleと #89 GitHubのOAuthは以下のような流れの動作です。
1.からclient_id、scope、redirect_url などの情報を含むurl(多分/oauth/github(google)/paramsから取得すると思います)でOAuth認証画面にリダイレクトする 2.ユーザーがGoogleまたはGitHubで認証を行う 3.登録後、設定されたリダイレクトurlに認証コードを加えてリダイレクトされる(リダイレクト先はフロント、バックの両方とも大丈夫そうです。フロントなら簡単なローディング動画が表示できます)(どちらの場合でも認証コードをバックエンドに送るapiを新たに作る必要があります) 4.バックエンドが認証コードをclient_secretなどとともにgoogle/githubのサーバーに送信して情報を取得する
初回登録時にはtrao judgeのユーザー名を設定する必要があると思うので、現在の/signup/registerで例えば?oauth=trueでパスワードを非表示にして、ユーザー名のみを設定するようにするのが良いかもしれません(oauthならパスワードの設定が必須かな、多分必要なし)
Sorry, something went wrong.
Eraxyso
No branches or pull requests
GoogleOAuthの仕様を調査して可能であれば実際に実装をしてみる。
The text was updated successfully, but these errors were encountered: