2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Herokuのパスワードを変更した後のheroku loginでAuthentication failed.がでる解決方法

Last updated at Posted at 2015-06-28

ブラウザからHerokuのパスワードを変更したら、ターミナルからHerokuにログインできなくなりました。
環境はMacでHerokuのプラグインheroku-accountsを利用して複数アカウントで使用します。

Heroku へのログインが失敗

heroku loginをしたら失敗してしまいました。 https://www.heroku.com/ でパスワードの変更をした後にこの現象が出ています。

Herokuへのloginで失敗
heroku login
WARNING: Toolbelt is currently updating
WARNING: heroku-accounts plugin is installed. This plugin is known to have problems with HTTP Git.
Enter your Heroku credentials.
Email: test@example.com
Password (typing will be hidden): 
Authentication failed.

Authentication failed.が出てログインが失敗してしまいます。
Herokuのパスワードを変更したら一度ローカルのアカウントを削除して作りなおすとログインができました。その手順を以下に記述しておきます。

一旦アカウントを削除する

アカウントを削除します。

アカウントを削除
heroku accounts:remove アカウント名

Account removed: アカウント名

ターミナルを新しく開きます。
それから、同じアカウントを追加します。

アカウントを追加
heroku accounts:add アカウント名 --auto

Enter your Heroku credentials.
Email: 自分のメールアドレス
Password (typing will be hidden): 

追加したアカウントへ切り替えます。

アカウントを切り替え
heroku accounts:set アカウント名

アカウントが切り替わっているか確認します。

アカウントを確認
heroku accounts
hogepiyo
* アカウント名

*がアカウント名の前についていたら切り替わっています。

Herokuにログイン

Herokuにログインできるか確認します。

Herokuへのlogin
heroku login
WARNING: heroku-accounts plugin is installed. This plugin is known to have problems with HTTP Git.
Enter your Heroku credentials.
Email: 自分のメールアドレス
Password (typing will be hidden): 
Authentication successful.

今度はログインが成功しました。やったね(☝ ՞ਊ ՞)

参考

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?