Issue with AzureAD SSO Configuration #9325
-
Trying to implement Azure AD SSO by following this guide: I'm able to click the sign in link -> login with AD credentials but I get redirected back to this error message after successfully signing in. <class 'social_core.exceptions.AuthForbidden'> REMOTE_AUTH_ENABLED = True This is what I put in my config.py - is there anything else I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Remove the {}'s from these strings first, restart NetBox and try again. |
Beta Was this translation helpful? Give feedback.
-
The XXX’s are obscuring the real values
…________________________________
From: Markku Leiniö ***@***.***>
Sent: Tuesday, May 10, 2022 4:20:38 PM
To: netbox-community/netbox ***@***.***>
Cc: Mini Man ***@***.***>; Author ***@***.***>
Subject: Re: [netbox-community/netbox] Issue with AzureAD SSO Configuration (Discussion #9325)
SOCIAL_AUTH_AZUREAD_OAUTH2_KEY = '{XXXX}'
SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET = '{XXXX}'
Remove the {}'s from these strings first, restart NetBox and try again.
—
Reply to this email directly, view it on GitHub<#9325 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACYAS6IAVDEHTVXH2YAIRTDVJH53NANCNFSM5VQM2Q7Q>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ah, my mistake - I’ll try this in the morning.
…________________________________
From: Markku Leiniö ***@***.***>
Sent: Tuesday, May 10, 2022 4:41:05 PM
To: netbox-community/netbox ***@***.***>
Cc: Mini Man ***@***.***>; Author ***@***.***>
Subject: Re: [netbox-community/netbox] Issue with AzureAD SSO Configuration (Discussion #9325)
I'm just saying that if you have the starting { or ending } characters in those strings just like you showed us, it won't work. If you don't have them, that's ok then, keep troubleshooting other things.
—
Reply to this email directly, view it on GitHub<#9325 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACYAS6JWXEWCLXIC2QDK5ATVJIAIDANCNFSM5VQM2Q7Q>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Wow that worked thanks so much – now to setup access for users.
I was also looking what else was required to enable guest/external access - is it just changing the backend source to social_core.backends.azuread_tenant.AzureADTenantOAuth2
?
Or are their additional configuration values required?
|
Beta Was this translation helpful? Give feedback.
Remove the {}'s from these strings first, restart NetBox and try again.