From c24fd618f5dd4cb9ad58ff8b1229a05789db0565 Mon Sep 17 00:00:00 2001 From: dustindkoch <63759985+dustindkoch@users.noreply.github.com> Date: Thu, 27 Feb 2025 05:59:57 -0600 Subject: [PATCH] website/integrations: fix netbox env variables (#13267) Update index.md I updated SOCIAL_AUTH_OIDC_SCOPE so it can dynamically be updated in Docker vs authentik.py. SOCIAL_AUTH_OIDC_ENDPOINT needs to be SOCIAL_AUTH_OIDC_OIDC_ENDPOINT. I found the correct variable in venv/lib/python3.12/site-packages/social_core/backends/open_id_connect.py. Signed-off-by: dustindkoch <63759985+dustindkoch@users.noreply.github.com> --- website/integrations/services/netbox/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/integrations/services/netbox/index.md b/website/integrations/services/netbox/index.md index 040392be47..88f3406418 100644 --- a/website/integrations/services/netbox/index.md +++ b/website/integrations/services/netbox/index.md @@ -44,10 +44,10 @@ REMOTE_AUTH_ENABLED='true' REMOTE_AUTH_BACKEND='social_core.backends.open_id_connect.OpenIdConnectAuth' # python-social-auth config -SOCIAL_AUTH_OIDC_ENDPOINT='https://authentik.company/application/o//' +SOCIAL_AUTH_OIDC_OIDC_ENDPOINT='https://authentik.company/application/o//' SOCIAL_AUTH_OIDC_KEY='' SOCIAL_AUTH_OIDC_SECRET='' -SOCIAL_AUTH_OIDC_SCOPE = ["openid", "profile", "email", "roles"] +SOCIAL_AUTH_OIDC_SCOPE=openid profile email roles LOGOUT_REDIRECT_URL='https://authentik.company/application/o//end-session/' ``` @@ -61,10 +61,10 @@ from os import environ ############# # python-social-auth configuration -SOCIAL_AUTH_OIDC_ENDPOINT = environ.get('SOCIAL_AUTH_OIDC_ENDPOINT') +SOCIAL_AUTH_OIDC_OIDC_ENDPOINT = environ.get('SOCIAL_AUTH_OIDC_OIDC_ENDPOINT') SOCIAL_AUTH_OIDC_KEY = environ.get('SOCIAL_AUTH_OIDC_KEY') SOCIAL_AUTH_OIDC_SECRET = environ.get('SOCIAL_AUTH_OIDC_SECRET') -SOCIAL_AUTH_OIDC_SCOPE = ["openid", "profile", "email", "roles"] +SOCIAL_AUTH_OIDC_SCOPE = environ.get('SOCIAL_AUTH_OIDC_SCOPE').split(' ') LOGOUT_REDIRECT_URL = environ.get('LOGOUT_REDIRECT_URL')