Questions tagged [auth-request]

53 questions
1
vote
1 answer

Nginx with auth_request_module to reverse proxied app throws CORS errors

I am developing a nginx server to work as a reverse proxy to a local webapp only when user is authenticated. Here is my nginx myconfiguration.conf flie inside etc/nginx/sites-enabled/: # Proxy Server to back-end site server { listen 80…
Gio Venice
  • 55
  • 8
1
vote
1 answer

Problem with nginx auth_request directive and location block with set

I have a variable called $host_header defined in the server section, which is overridden in location level. It works perfectly fine as all sets are done in the rewrite phase, so before any proxy_pass directive. Eventually, the proxy_pass to the…
1
vote
0 answers

Can't adjust redirect in Nginx, for message with code 401 "Auth Required"

I can't adjust redirect in Nginx virtual hosts config-file, specifically for "401 error message" (401 Authorization Required). My target: When I open address in web-browser, for example it'll be my.domain.com, I want adjust basic authentication and…
1
vote
1 answer

nginx auth_request error handling (unset error_page?)

When using nginx auth_request, only 4 return codes are accepted: 2xx, 401, 403 and 500. Handling these requires setting error_page. This is fine for auth_request, but all downstream apps returning these codes will end up using the same error_page…
Mike Emery
  • 807
  • 1
  • 11
  • 23
1
vote
0 answers

SAML-2 Cannot create HTTP-REDIRECT binding signature URL parameter

From what I understood, if I want to sign the SAML request, the signature should be constructed of: SAMLRequest=VALUE&RelayState=VALUE&SigAlg=VALUE and from that I should create the signature, this is the piece of code I have used in order to…
0
votes
0 answers

Nginx return dynamic JSON response in error_page

I have 2 REST applications: main API and Auth API. I configured Nginx above them, so that the request goes to auth API first and if auth succeeded, continues in main API. When Auth API returns 401 or 403, I would like to return error code to the…
0
votes
0 answers

Conditional auth_request in Nginx

I need to add conditional authorization to a redirection in Nginx, only when one defined url parameter is received (t in this case). And the value of this parameter has to be passed to the authentication server as a Bearer token in the Authorization…
chmp
  • 16
  • 2
0
votes
1 answer

nginx auth_request tricky behavior

When I try to use nginx's auth_request , it occurred a tricky behavior: server { listen 8080; server_name localhost; charset utf-8; set $myk $arg_k; location / { auth_request /myauth; proxy_pass http://nginxcluster/; } …
xsmyqf
  • 85
  • 9
0
votes
0 answers

NGINX (auth_request) and OAuth2 Proxy - 404 Not Found Error

I want to do authorization with OAuth2-Proxy on my linux server with NGINX installed. I also run streamlit applications on the server and run them in subdirectories with reverse proxy (you can see my NGINX configuration files). I want to restrict…
Can
  • 1
  • 3
0
votes
0 answers

"error_page"& "return'" bug?

It appears that the error_page directive is ignored when a status code is returned in the server context. My nginx config: enter image description here MyResult enter image description here I expect to return to error_page. not return return 200…
0
votes
0 answers

get request body in auth_request nginx

I want to have a request body in auth_request to check something in there, but probably have some issues when i try to pass request body, as a subrequest, it can't get any information about the body of request The api…
kuyuta
  • 1
0
votes
2 answers

Oracle Cloud Infrastructure Authentication Error

I am trying to execute the Oracle cloud infrastructure rest API's from the postman application I have followed their document and made the setup but I am getting authentication errors. I need some information regarding the OCI herders.
0
votes
1 answer

SAML2 Authentication using ASP.NET with ADFS Federation meta data

I am trying to implement the SAML2 authentication from ASP.NET Web Application(SP)(.Net Framework 4.0) with ADFS(IdP). I had integrated SAML2.o nugget and tried to many ways to get the credential inputs from HTML form and Post the SAML Response. But…
0
votes
0 answers

nginx auth_request example

I'm trying to replace http basic auth with something more user friendly, appealing, and most of all that can be filled automatically by my password manager, expecially on mobile phones. I've copied most of it from this blog, but this example uses…
Syco
  • 799
  • 2
  • 14
  • 23
0
votes
0 answers

Get auth_request module working where proxy_pass returns 302

This our setup: - We got React app running on nginx which needs to be secured on endpoint AAA - When user try access AAA, i am trying to do proxy_pass to site BBB. auth_request module expects endpoint BBB to return 200 (for success) and 401 for…
Bek Raupov
  • 3,782
  • 3
  • 24
  • 42