Skip to content

External Authentication (Microsoft Azure AD)

Jonathan Voss edited this page May 18, 2022 · 2 revisions

This guide explains how to use this role to deploy Microsoft Azure AD authentication for NetBox.

Configuration

Microsoft Azure AD authentication is configured by defining options within the netbox_remote_auth dictionary variable. Reference the official documentation for more details.

See the below for a simple configuration example:

# host_vars.yaml

# Azure AD
netbox_remote_auth:
  enabled: True
  backend: 'social_core.backends.azuread.AzureADOAuth2'
  azuread_oauth2:
    key: 6eabe82b-731e-40f0-bc40-80798f5e1021 # APPLICATION_ID
    secret: X_X7Q~6Cp4XX1ZHVHGxqoM2w.q1prQ    # SECRET_VALUE
    tenant: dfa9dfa2-6ag3-4ddf-9v1c-9622b54ded7a # TENANT ID (optional)

  # Optionally force the use of an HTTPS redirect URI
  # (see the official documentation for more information about this option)
  # social_auth_redirect_is_https: True

How to find your Tenant ID (if needed).

Special thanks to duviful for their contributions.

Clone this wiki locally