jeremyschulman / netbox-plugin-auth-saml2

Netbox plugin for SSO using SAML2
119 stars 21 forks source link

Having issues after SSO authentication and return to Netbox. #38

Closed pettcomputers closed 2 years ago

pettcomputers commented 3 years ago

So, I've got the plugin installed, and configured. I've used HTML login code to put the button on the login screen so I didn't modify the nginx config. This seems to works ok, when clicking the button it I can see it takes me to the SSO page and that portion works fine, but when it completes auth and takes me back to Netbox it returns me to netbox login screen with this URL : https://netboxdev.mydomain.com/login/?next=/sso/acs/

I've confirmed on the Azure side that it's processing correctly, and shows good auth. I'm just not sure where to check to see what I need to check/fix.

pentiumoverdrive commented 3 years ago

I'm on the same path as you and starting to configure this. I really wonder if the documentation is correct. It says exposing two new url:

/plugins/sso/login/ and /sso/acs/

But trying out the urls, you'll see they dont' work.

the nginx.conf says /api/plugins/sso/login and /api/plugins/sso/acs and these actually return something.

pettcomputers commented 3 years ago

Pentiumoverdrive, Did you have any luck with yours?

pentiumoverdrive commented 3 years ago

Works for me after I added nginx as another reverse proxy after azure app proxy, so that I could use those url re-directs.

The ACS url in extra.py is just the bare domain name.

jeremyschulman commented 3 years ago

Looks like this issue has been answered & resolved. Marking this for close in next 60 days unless I hear otherwise. Thank you!