move to copy
This commit is contained in:
parent
a71071dfcc
commit
c0ae5dcdcd
7 changed files with 80 additions and 73 deletions
|
@ -18,7 +18,7 @@ Should work on Debian-based distributions.
|
|||
|
||||
## Optional Arguments
|
||||
|
||||
- `netbox__patch_oidc_group_and_role_mapping_custom_pipeline`: Whether or not to patch NetBox to add custom pipeline code for OIDC group and role mapping.
|
||||
- `netbox__custom_pipeline_oidc_group_and_role_mapping`: Whether or not to have custom pipeline code for OIDC group and role mapping present.
|
||||
See [Custom Pipeline Code for OIDC Group and Role Mapping](#custom-pipeline-code-for-oidc-group-and-role-mapping) for more infos.
|
||||
Defaults to `false`.
|
||||
|
||||
|
@ -75,9 +75,9 @@ The relevant documentation on how to do that can be found here:
|
|||
|
||||
## Custom Pipeline Code for OIDC Group and Role Mapping
|
||||
|
||||
Setting the option `netbox__patch_oidc_group_and_role_mapping_custom_pipeline` to `true` makes this role patch NetBox to add custom pipeline code for OIDC group and role mapping.
|
||||
Note that this role uses a patch for NetBox >= 4.0.0.
|
||||
The patch is available in `files/0001_oidc_group_and_role_mapping_custom_pipeline.patch`, licensed under the CC BY-SA 4.0 license and taken from [this authentik NetBox documentation](https://docs.goauthentik.io/integrations/services/netbox/).
|
||||
Setting the option `netbox__custom_pipeline_oidc_group_and_role_mapping` to `true` makes this role ensure custom pipeline code for OIDC group and role mapping is present.
|
||||
Note that this role uses code for NetBox >= 4.0.0.
|
||||
The code is available in `files/custom_pipeline_oidc_group_and_role_mapping.py`, licensed under the CC BY-SA 4.0 license and taken from [this authentik NetBox documentation](https://docs.goauthentik.io/integrations/services/netbox/).
|
||||
The documentation also shows how to use the pipeline code by defining a custom `SOCIAL_AUTH_PIPELINE`, which you also need to do, as the configuration isn't provided by this role.
|
||||
See also [the default settings.py](https://github.com/netbox-community/netbox/blob/main/netbox/netbox/settings.py) for the default `SOCIAL_AUTH_PIPELINE`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue