Skip to content

Commit

Permalink
Add instruction for google auth
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Apr 9, 2024
1 parent 12a2bd6 commit 794d637
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions documents/googleauth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Google ログインの設定方法

Simplegrants は Google アカウントの SSO が実装されています。開発環境並びに、本番環境の設定は以下に従ってください。

## 1. GCP アカウントの作成と、プロジェクトの作成

[Google Could Platform](https://console.cloud.google.com/)にアクセスし、アカウントとプロジェクトを作成してください。

## 2. 同意画面の設定

OAuth 同意画面を作成します。テスト環境では特定のメールアドレスでのみログインできるようになっているので注意してください。

![](./images/googleauth-1.png)

## 3. OAuth クライアント ID の作成

OAuth クライアント ID 作成画面から ID とシークレットを作成します。

![](./images/googleauth-2.png)

## 4. 環境変数の設定

`/frontend/.env``GOOGLE_CLIENT_ID``GOOGLE_CLIENT_SECRET`にステップ 3 で作成した ID とシークレットを設定します。
Binary file added documents/images/googleauth-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/images/googleauth-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 794d637

Please sign in to comment.