apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.73k stars 4.58k forks source link

[Bug] [API] SSO login bug #16668

Closed mzxc closed 3 days ago

mzxc commented 3 days ago

Search before asking

What happened

when use sso login type, refresh login page and click sso login button, will dialog a error tips: State or code entered incorrectly. because the request url: login/sso will be requested when front page refresh every time, but when session attr not null, will not save new random code, so this bug will happen!

What you expected to happen

anytime click sso button will successful login

How to reproduce

api server set login type: CASDOOR_SSO , goto login page , when this page loaded, refresh page, then click sso button, when auth success and redirect to login page, will dialog an error tips: State or code entered incorrectly

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

Code of Conduct

mzxc commented 3 days ago

fixed in 3.3.0