|
|
@@ -41,6 +41,8 @@ NetBox supports single sign-on authentication via the [python-social-auth](https
|
|
|
|
|
|
Most remote authentication backends require some additional configuration through settings prefixed with `SOCIAL_AUTH_`. These will be automatically imported from NetBox's `configuration.py` file. Additionally, the [authentication pipeline](https://python-social-auth.readthedocs.io/en/latest/pipeline.html) can be customized via the `SOCIAL_AUTH_PIPELINE` parameter. (NetBox's default pipeline is defined in `netbox/settings.py` for your reference.)
|
|
|
|
|
|
+A custom pipeline should include `social_core.pipeline.social_auth.social_names` directly after `social_core.pipeline.social_auth.social_details`. This step fills in a user's first and last names from the full name supplied by the identity provider (or the full name from the first and last names). Without it, users created by SSO are left without any name the provider does not supply directly. Note also that custom pipeline functions do not receive a `request` argument.
|
|
|
+
|
|
|
!!! note "Content Security Policy"
|
|
|
Beginning an SSO login requires the browser to make a request back to NetBox before it is sent
|
|
|
on to the identity provider. If you serve NetBox with a Content Security Policy which does not
|