LoginSignup
0
0

More than 3 years have passed since last update.

Spin CLIでGoogle認証する

Posted at

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: #先程表示したリフレッシュトークンを記入

参考

Install and Configure Spin CLI - Spinnaker

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0