gcloudコマンドでログイン
$ gcloud auth login
アクセストークンを表示
$ gcloud auth print-access-token
リフレッシュトークンを表示
$ gcloud auth print-refresh-token
~/.spin/config
に以下を記入。なければ作成。
~/.spin/config
gate:
endpoint: http://spingate.xxxx #アクセスしたいspingateのエンドポイントを記入
auth:
enabled: true
oauth2:
tokenUrl: https://www.googleapis.com/oauth2/v4/token
authUrl: https://accounts.google.com/o/oauth2/v2/auth
scopes:
- email
- profile
cachedToken:
accesstoken: #先程表示したアクセストークンを記入
refreshtoken: #先程表示したリフレッシュトークンを記入