steinarb / authservice

An OSGi web whiteboard webapp that serves as authenticator and login page for the nginx_auth_request_module
Apache License 2.0
3 stars 0 forks source link

Use query parameter instead of cookie to redirect back to page using authentication #6

Open steinarb opened 5 years ago

steinarb commented 5 years ago

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.