When using authservice to authenticate from nginx the original URL is put into a cookie and after authenticating authservice redirects back to the URL in the cookie.
Using a cookie sometimes gives strange errors (sometimes the redirect goes to a different place than originator of the authentication request), so I think it would be better to send the authentication request originator URL in a query parameter.
When using authservice to authenticate from nginx the original URL is put into a cookie and after authenticating authservice redirects back to the URL in the cookie.
Using a cookie sometimes gives strange errors (sometimes the redirect goes to a different place than originator of the authentication request), so I think it would be better to send the authentication request originator URL in a query parameter.