traefik-forward-auth0 icon indicating copy to clipboard operation
traefik-forward-auth0 copied to clipboard

Handle error=unauthorized & error_description=Access denied response

Open dniel opened this issue 5 years ago • 0 comments

Implement error handling so that unauthorized responses is handled correctly by ForwardAuth. Now it just print the error message with the generic error json printer. It should show an better unauthorized error page, maybe just report 401 and let Traefik route it to correct webapp to handle 401 status messages.

https://redacted/oauth2/signin?error=unauthorized&error_description=Access%20denied.&state=eyJvcmlnaW5VcmwiOnsicHJvdG9jb2wiOiJodHRwcyIsImhvc3QiOiJ0cmFlZmlrLmRuaWVsLnNlIiwidXJpIjoiL2Rhc2hib2FyZC8ifSwibm9uY2UiOnsidmFsdWUiOiJmODE2NmNkNGFlYTc0ZTNlYjEzZGI2Y2M1Y2UyNjk0ZiJ9fQ%3D%3D

dniel avatar Mar 08 '19 14:03 dniel