jeremyschulman / netbox-plugin-auth-saml2

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

A file permission error was detected while processing this request. Common causes include the following #58

Closed absmith82 closed 2 years ago

absmith82 commented 2 years ago

I get this error anytime I use the django3_saml2_nbplugin.backends any plugin. SAML auth works using Django contrib remote user but does not auto assign groups and flags so obviously the custom backend would be nicer.

I am using the netbox community docker container on kubernetes

A file permission error was detected while processing this request. Common causes include the following:

Insufficient write permission to the media root - The configured media root is . Ensure that the user NetBox runs as has access to write files to all locations within this path.

The complete exception is provided below:

<class 'PermissionError'>

SAML2 backend SAML2CustomAttrUserBackend missing attribute: emailaddress

Python version: 3.9.5 NetBox version: 3.2.1

devon-mar commented 2 years ago

SAML2 backend SAML2CustomAttrUserBackend missing attribute: emailaddress

Can you check that your IDP is sending the correct attributes?

markkuleinio commented 2 years ago

emailAddress instead of emailaddress?

absmith82 commented 2 years ago

Thank you, that is what I was missing.

I was trying both the full namespace and attribute, and just the attribute, but I missed the CaMel TyPe for some reason on the list listed in pysaml2.