pwielgolaski / teamcity-oauth

teamcity oauth2 authentication plugin
Apache License 2.0
43 stars 25 forks source link

Conflict with jetbrains internal github.com authentication #34

Open bygjames opened 3 years ago

bygjames commented 3 years ago

Using oauth for gsuite and native github for github.com authentication.

Error is "Unauthenticated since retrieved 'state' doesn't correspond to current TeamCity session." during login

But only if the authentication module order loads teamcity-oauth before github.com

image

this order loads will login with no issue.

image

dmitry-treskunov commented 3 years ago

@pwielgolaski Hi, right now the OAuthAuthenticationScheme handles all unauthenticated requested that have state and code parameters, while it should use and check a specific request URL. It will probably help here