8000 redirectUri problem fix. by SetoKaiba · Pull Request #17601 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

redirectUri problem fix. - #17601

Closed
SetoKaiba wants to merge 1 commit into
keycloak:mainfrom
SetoKaiba:main
Closed

SetoKaiba wants to merge 1 commit into
keycloak:mainfrom
SetoKaiba:main

Conversation

@SetoKaiba
@SetoKaiba SetoKaiba commented Mar 12, 2023 •
Copy link
Copy Markdown

Closes #17600

@SetoKaiba
SetoKaiba requested a review from a team as a code owner March 12, 2023 06:22
@SetoKaiba SetoKaiba mentioned this pull request Mar 12, 2023
2 tasks done
@edewit edewit added the team/ui label Mar 16, 2023
@jonkoops jonkoops added area/adapter/javascript JavaScript adapter (keycloak-js) — OIDC client, token management kind/bug Categorizes a PR related to a bug labels Mar 28, 2023
@jonkoops
Copy link
Copy Markdown
Contributor

@SetoKaiba I am not able to reproduce the issue you mentioned in my test project. I removed all of the options for the init() step and called .login() manually and the parameters seem to be removed as expected.

Could you provide me with the minimal steps to reproduce this? Feel free to fork my project and see if you can reproduce the issue there.

@jonkoops jonkoops added the status/hold PR should not be merged. On hold for later. label Mar 28, 2023
@SetoKaiba
SetoKaiba commented Mar 28, 2023 •
Copy link
Copy Markdown
Author

@SetoKaiba I am not able to reproduce the issue you mentioned in my test project. I removed all of the options for the init() step and called .login() manually and the parameters seem to be removed as expected.

Could you provide me with the minimal steps to reproduce this? Feel free to fork my project and see if you can reproduce the issue there.

@jonkoops Here's the step.

  1. init({onLoad: 'check-sso'}. I need this option to check the authentication status.
  2. Call login.
  3. Login within the page.
  4. Check the address bar.

@jonkoops
Copy link
Copy Markdown
Contributor

@SetoKaiba I've updated my commit to match what you have provided. When I log in the paramaters stay in the URL for a second and are then removed. So this seems to work as expected.

Are you able to reproduce this with my provided example?

@SetoKaiba
Copy link
Copy Markdown
Author

Let me have a try with your project to see what's the problem.

@SetoKaiba
Copy link
Copy Markdown
Author

@jonkoops I try your project. But I'm on windows and I can't run it.
I try to reproduce it of my own project and have video recording. But it seems that I can't reproduce it. Previously, when I use check-sso and it fails, my address bar will follow the #error=login-required&state=xxxx. But it doesn't now. I don't know why. If no #error=login-required&state=xxxx after the check-sso. The bug won't be reproduced.

@jonkoops
jonkoops commented Apr 5, 2023
Copy link
Copy Markdown
Contributor

Thanks for checking this @SetoKaiba. I am considering this as unreproducible at this time, so I'll go ahead and close this PR and the associated issue. If someone does manage to reproduce this issue feel free to let us know.

@jonkoops jonkoops closed this Apr 5, 2023
@SetoKaiba
Copy link
Copy Markdown
Author

@jonkoops https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino/
I reproduced this with this chrome extension enabled.

@jonkoops
jonkoops commented Apr 5, 2023
Copy link
Copy Markdown
Contributor

If the extension is the cause then I would recommend disabling it.

@SetoKaiba
Copy link
Copy Markdown
Author

For testing purpose, my app need to load some asset without cors header. And also, I can't restrict my user's plugin. Can this be merged? As this seems no side effect of ths modifcation. It just clears the params like the init login-required does.

@jonkoops
jonkoops commented Apr 5, 2023
Copy link
Copy Markdown
Contributor

I am sorry, but I think that it doesn't make sense to merge fixes for things that are getting broken by a browser extension. I'd recommend logging an issue for the browser extension instead. Alternatively you can disable CORS entirely for Chrome by passing the --disable-web-security flag during testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/adapter/javascript JavaScript adapter (keycloak-js) — OIDC client, token management kind/bug Categorizes a PR related to a bug status/hold PR should not be merged. On hold for later.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keycloak js adapter login method problem

3 participants

0