You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has anyone ever needed to use the auth_request module within Nginx Proxy Manager? Can you tell me if this configuration is correct?
location / {
deny all;
}
location /api/ {
allow all;
if ($arg_auth = "") {
return 403 "Access Denied: Missing auth parameter";
}
}
location = /_oauth2_token_introspection {
internal;
proxy_method POST;
proxy_set_header Authorization "bearer SecretForOAuthServer";
proxy_set_header Content-Type "application/x-www-form-urlencoded";
proxy_set_body "token=$arg_auth &token_hint=access_token";
proxy_pass https://xxx.free.beeceptor.com;
}
In the browser, it returns a 500 error and doesn't even reach the token validation API.
checked error log files and show only this: "[error] 1467#1467: *5327 auth request unexpected status: 502 while sending to client"
Beta Was this translation helpful? Give feedback.
All reactions