JetBrains / teamcity-azure-active-directory

TeamCity plugin which supports authentication via Microsoft Azure Active Directory
Apache License 2.0
26 stars 19 forks source link

After authenticate on Microsoft Azure , browser redirect to "https: //%TEAMCITY_URL%/login.html" again #47

Open oleksandr-zh opened 4 years ago

oleksandr-zh commented 4 years ago

I get next message in a browser:
400 Marked request as unauthenticated since failed to parse JWT from retrieved id_token

SithVicious commented 3 years ago

https://github.com/JetBrains/teamcity-azure-active-directory/issues/42

Please post up in this enhancement, we have one open for this

masonsa commented 2 years ago

Any update on this issue ? We have recently deployed the latest plugin (7.2) and whilst the Oauth session is completed successfully, I am just redirected back to the login page again.

galvesribeiro commented 10 months ago

Alright. I got this to work. It turns out the documentation is not saying everything.

When configuring your Azure AD App Registration, make sure that

  1. Only the https://<your_TC_DNS>/aadAuth.html is added to redirect URIs. Remove the /overview.html
  2. In the flows, make sure the ID tokens is selected
image

That did the trick for us. I hope it help.