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

400 Marked request as unauthenticated since failed to parse JWT from retrieved id_token #56

Open
solazs opened this issue Mar 30, 2021 · 8 comments

Comments

@solazs
Copy link

solazs commented Mar 30, 2021

After upgrading to latest teamcity (2020.2.3) and the latest version of the aad plugin (0.7.2), we're getting the following error after logging in to teamcity:

400 Marked request as unauthenticated since failed to parse JWT from retrieved id_token <some 4 lines of data here>

I'm unsure what this is caused by.
We have CORS set up according to the plugin docs, our config worked before upgrading.

If you need any more info let me know what to upload.

@IlyaFomenko
Copy link
Contributor

@solazs could you please verify that you are using "OAuth 2.0 authorization endpoint (v1)" for the plugin?

@solazs
Copy link
Author

solazs commented Mar 30, 2021

Yes, I'm using "https://login.microsoftonline.com/(tenant-id)/oauth2/authorize", which is "OAuth 2.0 authorization endpoint (v1)"

@IlyaFomenko
Copy link
Contributor

I create an issue in our YouTrack
Please post your answers there.

Are you using internal property:
teamcity.aad.endpoint.type=dedicated
?
Also please attach the full text of the error with id_token (please make it visible to jetbrains team only).

@solazs
Copy link
Author

solazs commented Mar 30, 2021

@IlyaFomenko done.

@StephenShamakian
Copy link

@solazs @IlyaFomenko Was this ever solved? We are running into the same issue with v2021.1.3 of TeamCity and the latest plugin version for AzureAD.

@matthewzdonczik
Copy link

@solazs @IlyaFomenko any updates on this one? I am having the same problem with plugin version 0.7.2 and teamcity version 2021.2

@StephenShamakian
Copy link

@matthewzdonczik I had JetBrains support open a ticket for us: https://youtrack.jetbrains.com/issue/TW-74020

But I believe the issue we have is around the JWT token verifier needing access to the URL listed in this code: https://github.com/JetBrains/teamcity-azure-active-directory/blob/master/azure-active-directory-server/src/main/kotlin/org/jetbrains/teamcity/aad/JWTVerifier.kt#L25

JetBrains said the TeamCity internal properties for proxy don't apply to this code. We were getting errors in the win-service.log file that it was unable to access this endpoint.

@ttermeer-reboundcg
Copy link

ttermeer-reboundcg commented Dec 5, 2023

Same error appeared for us today after we rebooted the server. It was working fine before.
edit: problem went away on its own.

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

No branches or pull requests

5 participants