Skip to content

Commit

Permalink
add support for Microsoft AzureAD authentication (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoss authored Apr 29, 2022
1 parent 649bdca commit 360173a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/configuration.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ REMOTE_AUTH_AUTO_CREATE_USER = {{ netbox_remote_auth.auto_create_user | default(
REMOTE_AUTH_DEFAULT_GROUPS = {{ netbox_remote_auth.default_groups | default([]) | to_json }}
REMOTE_AUTH_DEFAULT_PERMISSIONS = {{ netbox_remote_auth.default_permissions | default({}) | to_json }}

{% if netbox_remote_auth.azuread_oauth2 is defined %}
SOCIAL_AUTH_AZUREAD_OAUTH2_KEY = '{{ netbox_remote_auth.azuread_oauth2.key }}'
SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET = '{{ netbox_remote_auth.azuread_oauth2.secret }}'
{% endif %}

{% if netbox_remote_auth.social_auth_redirect_is_https is defined %}
SOCIAL_AUTH_REDIRECT_IS_HTTPS = {{ netbox_remote_auth.social_auth_redirect_is_https }}
{% endif %}

{% if netbox_release_check_url == 'None' %}
RELEASE_CHECK_URL = None
{% else %}
Expand Down

1 comment on commit 360173a

@duviful
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this!

Please sign in to comment.