2

I'm using nginx as reverse proxy to protect my server's HTTP endpoints. I want to use Azure AD as authentication provider. How do I make nginx check credentials against Azure AD? Should I use Oauth? How?

Igor Gatis
  • 4,648
  • 10
  • 43
  • 66

1 Answers1

1

This might be something https://github.com/kvspb/nginx-auth-ldap Or else you will have to resort to a php script querying AD returning a token to authenticate a session. Or via Lua https://github.com/Kloadut/SSOwat

itpp13
  • 444
  • 2
  • 6
  • I'd like to avoid building nginx if possible. Sounds like https://github.com/bitly/oauth2_proxy works out of the box. Am I missing something? I know it does not support WebSockets (which is a problem since I want nginx to reverse proxy for Kibana which does need WebSockets, AFAIK). – Igor Gatis Jun 17 '15 at 16:17
  • oauth2 is a backend solution, same as php would be. – itpp13 Jun 17 '15 at 17:20
  • Almost similar http://stackoverflow.com/questions/1003751/how-do-i-use-microsoft-ad-and-php-single-sign-on-web-app – itpp13 Jun 17 '15 at 17:56