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

Jan Wrobel wrr at mixedbit.org
Mon Mar 11 09:20:10 UTC 2013


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



More information about the nginx mailing list