Forum: NGINX auth_request: is it possible to return auth_request result directly to client?

Posted by Jan Wrobel (Guest)
on 2013-03-11 10:20
(Received via mailing list)
Hi,

Currently I have auth_request module configured to return static pages
on 401 and 403 errors. This looks like this:

auth_request /auth/api/is-authorized/;
error_page 401 /auth/login.html;
error_page 403 /auth/not_authorized.html;

Instead of this, is it possible to return 401 and 403 responses (along
with bodies) from the authentication backend directly to the client?

Thanks,
Jan
Posted by Maxim Dounin (Guest)
on 2013-03-11 11:55
(Received via mailing list)
Hello!

On Mon, Mar 11, 2013 at 10:20:10AM +0100, Jan Wrobel wrote:

> with bodies) from the authentication backend directly to the client?
No.

--
Maxim Dounin
http://nginx.org/en/donation.html
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.