heroku login
heroku login
を実行すると、IP address mismatch
というエラーがブラウザに出力されました。
% heroku login
› Warning: heroku update available from 8.4.0 to 8.4.3.
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/~~~~~~
heroku: Waiting for login... ⣻
heroku login -i
heroku login -i
を実行したところEmail、Passwordを求められたため、これでいける!と思いましたがエラーが発生。
% heroku login -i
› Warning: heroku update available from 8.4.0 to 8.4.3.
heroku: Enter your login credentials
Email [test@gmail.com]:
Password: ********
Error: Your account has MFA enabled; API requests using basic authentication with email and password are not supported. Please generate an authorization token for API access.
Error ID: vaas_enrolled
API Keyの設定
パスワードは、MFAが有効化されてる時、API Keyを設定する必要がある。
そのため、PasswordにAPI Keyをコピペしたところ成功しました。
% heroku login -i
› Warning: heroku update available from 8.4.0 to 8.4.3.
heroku: Enter your login credentials
Email [test@gmail.com]:
Password: ************************************ ← API Keyを設定する