You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm faced with the same issue. When receiving ErrAuthOldRevision, which may be from updating other users or roles, the client needs to update the auth token.
I have some optional proposals:
make getToken() as public and developer could add an interceptor for handling ErrAuthOldRevision.
make unaryClientInterceptor() general, which could handle ErrInvalidAuthToken, ErrAuthOldRevision, and any other errors. Options:
passing error list
passing error handling function list
add a new optional interceptor for handling ErrAuthOldRevision.
Thanks for reporting @LeoYang90 . Yes auth store has one shared revision for all auth information so the error code can be returned to a user which isn't changed by the operation. Similar issue happens to Authenticate() RPC call (will be fixed in #10408) and I'm planning to fix them. We have some ongoing client side changes (e.g. #12165) so it might need some time, sorry for keeping you waiting.
I think your 2nd approach should be used @xqzhang2015
make unaryClientInterceptor() general, which could handle ErrInvalidAuthToken, ErrAuthOldRevision, and any other errors. Options:
passing error list
passing error handling function list
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.
I think
cliUser2.Put
should not be affected by changing password. But the test returns ErrAuthOldRevision.Clientv3 can automatically retry when get a ErrInvalidAuthToken, but server return ErrAuthOldRevision:
So, should we change it to ErrInvalidAuthToken?
The text was updated successfully, but these errors were encountered: