-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure ad authentication not sending correct base URL #4120
Comments
Are you running some sort of proxy in front of AWX? This looks like it could be a misconfiguration on your end. |
I am. I have it behind an nginx reverse proxy. How would I go about correcting the config? |
The best answer is "it's complicated" (we don't currently have any official documentation on doing it, and given the number of variables it'll probably come down to just troubleshooting it - maybe there's a bug lurking under the surface somewhere?) Have you tried seeing if anyone else has encountered this problem in our mailing list or IRC room? http://webchat.freenode.net/?channels=ansible-awx |
@ryanpetrello I have not checked out the mailing list or IRC. I'll check them out. It's possible for me to work without a reverse proxy if that enables me to use SSO. Is that answer less complicated? |
Here's a similar issue, only with SAML, which might point you in the right direction: I suspect this will probably come down to some mixture of This Red Hat Ansible Tower documentation might be applicable, too: https://docs.ansible.com/ansible-tower/latest/html/administration/proxy-support.html |
We're running AWX behind an Nginx reverse proxy with Azure AD enabled. This is working fine after passing some headers to awx_web. This is our configuration to get it working:
|
@piwi91 and @ryanpetrello, Thank you both so much. It was indeed the headers that needed to be forwarded. Login now sends the HTTPS url. Now I think I just have to map the accounts because I get the error "Your credentials aren't allowed. " |
@piwi91 How did you pass the headers to awx_web ? |
@svrraja |
ISSUE TYPE
SUMMARY
I've set the base URL to https://awx.myurl.com but when I try to authenticate with Azure AD (which shows the https:// url in the callback url) it sends the callback url as http://
ENVIRONMENT
STEPS TO REPRODUCE
Set AWX base URL to https://awx.myurl.com, create Azure AD app. Go to Settings > Authentication. See the callback URL as https://, save and logout. On the login page click Login with Azure and get the following error:
Then looking at the actual url I see that it send the http:// url and not the https:// url
EXPECTED RESULTS
To be logged in via Azure AD SSO
ACTUAL RESULTS
Wrong callback URL sent.
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered: