servant-auth icon indicating copy to clipboard operation
servant-auth copied to clipboard

Make auth issue debugging easier - attach reason to Indefinite

Open harendra-kumar opened this issue 8 years ago • 0 comments

Currently it is hard to debug without changing the code of the package. For example, I ran into a cookie authentication issue and it was failing because X-XSRF-TOKEN was not present. The cookieAuthCheck code just calls the fail method if loopup fails which is not easy to see in the code ultimately it returns just Indefinite for all these failure cases. It would be of great help if we can attach failure reason with the Indefinite constructor.

harendra-kumar avatar Jan 10 '18 09:01 harendra-kumar