Issue upgrading from 2.9.9 to latest. #5490
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
It looks like something may have gone wrong with your upgrade. 13a13f3 recently changed how plugin validation works for the v2.10 release (see #5446), however that doesn't explain why the |
Beta Was this translation helpful? Give feedback.
-
Plugin It work fine if I comment out the plugin. |
Beta Was this translation helpful? Give feedback.
-
Ah, yeah here's the problem: The plugin uses a custom You can modify the plugin's config class locally to fix it, but you'll also want to open a bug report for the plugin. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer jeremy. Can you tell me what I need to change in file locally exactly? I dont know exactly... |
Beta Was this translation helpful? Give feedback.
-
In the plugin's @classmethod
def validate(cls, user_config):
super().validate(user_config)
SAML2_AUTH_CONFIG.update(user_config) to @classmethod
def validate(cls, user_config, version):
super().validate(user_config, version)
SAML2_AUTH_CONFIG.update(user_config) |
Beta Was this translation helpful? Give feedback.
-
Converted this to a discussion as this isn't an issue with netbox core |
Beta Was this translation helpful? Give feedback.
-
The saml2 plugin was updated today and solves this issue 💯 , just : |
Beta Was this translation helpful? Give feedback.
Ah, yeah here's the problem: The plugin uses a custom
validate()
method that's not compatible with NetBox v2.10: https://github.com/jeremyschulman/netbox-plugin-auth-saml2/blob/79d76511ce2349aac4803a398d7cd1d14048f5a7/django3_saml2_nbplugin/__init__.py#L27You can modify the plugin's config class locally to fix it, but you'll also want to open a bug report for the plugin.