marcus-crane / netbox-plugin-azuread

A plugin that enables users to authenticate with Netbox using Azure Active Directory
18 stars 5 forks source link

Netbox automatically redirects azuread/login to /login/ #20

Open tomsiewert opened 2 years ago

tomsiewert commented 2 years ago

With Netbox v3.1.2, I am facing the issue that I can not reach the AzureAD login site without logging me in before. Netbox automatically redirects unauthenticated users from /plugins/azuread/login/ to /login/?next=/plugins/azuread/login/.

Python version: Python 3.9.5 Installed plugins:

msal                          1.16.0
netbox-plugin-azuread         1.2.0
netbox-plugin-prometheus-sd   0.2.0
marcus-crane commented 2 years ago

Hey there,

GIven you're running a version of Netbox above 3.1.0, I would encourage you to check out the officially supported SSO support, that didn't exist when this plugin was created: https://netbox.readthedocs.io/en/stable/administration/authentication/#single-sign-on-sso

I haven't had a chance to play with it myself but I was planning on providing some configuration examples for newcomers to this plugin while retaining the plugin for users who aren't on 3.1.0 or higher

As for the issue you mentioned, I'll see if I can recreate it when I can 🙂

tomsiewert commented 2 years ago

Hey Marcus,

Thanks for your answer and your suggestion. I have tried the integrated SSO support and it works as intended (but it miss some important things like redirect URI’s in the documentation).

marcus-crane commented 2 years ago

Ah, so just to clarify, it does everything you need? I'm happy to submit a PR for the docs in order to help offboard users to the official solution 🙂 Happy holidays!

tomsiewert commented 2 years ago

I haven't looked if I can do Group Mapping but at least I can do the "basic things" with the SSO extension :)