marcus-crane / netbox-plugin-azuread

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

Azure AD authentication - Getting "Class 'AttributeError'" #21

Open kalamchi75 opened 2 years ago

kalamchi75 commented 2 years ago

Hi Guys,

I'm trying to integrate Azure AD authentication into Netbox, following instructions in:

https://github.com/marcus-crane/netbox-plugin-azuread

I'm getting the error in the screenshot below: image

This seems to be coming from the server itself rather than Azure AD. Any advice where might be the issue ?

Please keep in mind that i'm new to Azure active directory and its applications setup. so I might have an error there. Please let me know what information/settings would you like to know to assist me with the integration.

Many thanks in advance

marcus-crane commented 2 years ago

Hey @kalamchi75,

There was a identical issue here where someone had accidentally passed in the ID of the client secret, rather than the actual secret itself: https://github.com/marcus-crane/netbox-plugin-azuread/issues/16#issuecomment-999496471

As a first step, try double checking your client secret to make sure this hasn't happened. If that isn't the case, feel free to report back and I'll see what's next.

As an FYI, I'm not actively using Netbox at my job but I also haven't archived this plugin. Feature wise, nothing else should be required so that isn't a huge issue.

That said, Netbox added support for Django Social Auth, which includes an Azure AD provider. You're welcome to use this plugin but at some point, I'll likely see if I can document a migration path to use the official supported plugin over this one, just since it's actively developed.

If the official setup isn't as feature complete as this plugin though, I'll just leave the plugin but either way, it'll still remain on Github so it's not disappearing or anything like that 🙂

Thanks!

kalamchi75 commented 2 years ago

Hi Marcus,

Thank you very much for getting back to me, and I totally understand if you don't decide to maintain this plugin anymore, but it's a good solution for the time being.

Indeed, I saw the older case just after I reported this one. So I played a little with it. I had also similar key issue, however it wasn't that I copied the wrong key. But, I created the key following some microsoft docs, and that didn't seem to work and cause the issue. I created another key, (after reading the older issue article); using the automated "Get Started" button in Azure, and that key seems to have worked. However, I still have few issues: