Skip to content
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

Oauth error #14

Closed
chlsmith opened this issue Dec 4, 2015 · 3 comments
Closed

Oauth error #14

chlsmith opened this issue Dec 4, 2015 · 3 comments
Labels

Comments

@chlsmith
Copy link

chlsmith commented Dec 4, 2015

I'm getting the attached error after I have everything configured. I've had two sets of eyes examine my configuration on both the Azure and the TeamCity ends, and everything appears correct to me. On the AD side, I have users configured for access, but I don't even get to the point of putting in credentials after I configure the TeamCity end.

2015-12-04 10_24_48-twitter

@RonnieHegelund
Copy link

It seems like it is requesting to authorize through it's own domain, instead of using https://login.microsoftonline.com

@davidshorter
Copy link

We had this same issue, our setup is TC with SSL behind URL re-write rule / reverse proxy using IIS.
IIS URL rewrite was interfering with it. After following the instructions here we were able to use AD Auth.

Seems to not be isolated to just Azure AD but any oauth2 flows.

@dtretyakov
Copy link
Collaborator

After the click on Log in using Azure Active Directory this plugin redirects to the Azure AD OAuth2 authorization page: https://login.microsoftonline.com/...

And if you have reverse proxy behind TeamCity which does not check server host while rewriting URLs Azure AD OAuth URL will be affected by URl rewrite.

So in such case please inspect reverse proxy rules.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants