pepper icon indicating copy to clipboard operation
pepper copied to clipboard

Cached token should be invalidated immediately if server rejects it.

Open vitaliyf opened this issue 8 years ago • 2 comments

When --make-token is used a token is stored in ~/.peppercache with an expiration time. However, it's possible that server will expire this token sooner for some reason (we found that restarting salt-api process does that). In this case, user gets stuck with perpetual "access denied" errors due to now invalid token.

Instead, pepper should immediately expire saved token if server rejects it and ask for password again.

vitaliyf avatar Jul 01 '17 02:07 vitaliyf

Agreed. Thanks for filing this.

whiteinge avatar Jul 03 '17 15:07 whiteinge

Also hitting this. Doesn't make for a great user experience, especially for less technical users.

ggiesen avatar May 07 '22 08:05 ggiesen