How to setup nginx to authenticate users through Azure AD?

10k Views Asked by At

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?

1

There are 1 best solutions below

3
On BEST ANSWER

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