Need help on Oauth-2.0 Token with Nginx reverse proxy

blason nginx-forum at forum.nginx.org
Mon Aug 5 10:00:33 UTC 2019


Hi Folks,

Really no solution for this? Can someone please help?

Now I am seeing beloe error in access.log and my file is like this

11.22.33.44 - - [05/Aug/2019:14:50:58 +0530] "POST /connect/token HTTP/1.1"
404 191 "https://test.example.net/" "Mozilla/5.0 (Windows NT 10.0; Win64;
x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87
Safari/537.36"

location = /connect/token {
        internal;
        proxy_set_header Authorization "bearer xxxxx";
        proxy_set_header  Content-Type "application/x-www-form-urlencoded";
        proxy_method POST;
#       proxy_pass_header  Authorization;
        proxy_pass https://test.example.net:99/connect/token;
        }

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285048,285108#msg-285108



More information about the nginx mailing list