servant-auth
servant-auth copied to clipboard
Make auth issue debugging easier - attach reason to Indefinite
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.