Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

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

Open
kalamchi75 opened this issue Feb 11, 2022 · 2 comments
Open

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

kalamchi75 opened this issue Feb 11, 2022 · 2 comments
Labels
awaiting response bug Something isn't working

Comments

@kalamchi75
Copy link

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
Copy link
Owner

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: #16 (comment)

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
Copy link
Author

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:

  • for some reason, I get a message that i'm already logged in, even if I am not logged in with my account, but rather as Admin.
  • Even when I define a user/group as Superuser in the config, they still appear in Netbox with no privileges at all. Would you have an advice on that ?

Thanks in advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting response bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants