jeremyschulman / netbox-plugin-auth-saml2

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

Netbox 3.3 #63

Closed beezed1 closed 1 year ago

beezed1 commented 1 year ago

Hello,

Does anyone have this plugin working on Netbox 3.3?

I've had it running fine on different versions - 3.02, 3.1.8 & 3.2.1. I'm having issues getting it working on 3.3.5. It's been a while since I've done anything with Netbox but I think I'm doing everything correctly.

The Netbox upgrade process has completed successfully. However, when I try and access the system I get the following error

Screenshot 2022-10-24 163924

I'm currently using the following plugin versions (but have tried a variety of versions with the same results):

The configuration.py file that I'm using works fine on 3.18 & 3.2.1. The backends.py file for the plugin contains an entry for SAML2CustomAttrUserBackend.

Has anyone else had success (or failure) with the plugin on Netbox 3.3.x?

Many thanks Phil

devon-mar commented 1 year ago

Is NetBox able to import any of the other backends?

Also, if you open up Python in the same venv as NetBox, can you import it (from django3_saml2_nbplugin.backends import SAML2CustomAttrUserBackend)

beezed1 commented 1 year ago

Thanks for the suggestion. I'm not sure what the issue was. I was about to abandon the plugin and delve into the python-social-auth option (which does not look as friendly) when I gave it a final go with a fresh install of Netbox 3.3.7.

And it worked fine as expected. Don't know was wrong, maybe an issue with one of the versions of a Python package maybe.

Fingers crossed for future releases.