Skip to content

sessionCheckEventListener wrong origin xyz expected /auth/realms/demo #257

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

Closed
xmlking opened this issue Mar 6, 2018 · 7 comments
Closed

Comments

@xmlking
Copy link

xmlking commented Mar 6, 2018

I am seeing following warning messages when using with keycloak. any idea?

sessionCheckEventListener wrong origin http://localhost:4200 expected http://localhost:8080/auth/realms/demo

@manfredsteyer
Copy link
Owner

Seems to be a configuration issue. Did you manage to solve this? Your Keycloak seems to expect the wrong origin.

@xmlking
Copy link
Author

xmlking commented May 12, 2018

Yep solved

@manfredsteyer
Copy link
Owner

Cool, thx for this info.

@yukund
Copy link

yukund commented May 17, 2018

Hi @xmlking
I have the same error : sessionCheckEventListener wrong origin http://localhost:4200 expected http://localhost:9193

My Identity server (IDP) is hosted on http://localhost:9193, where should I config the origin in order to fix the issue ?

thanks
Yanbo

@xmlking
Copy link
Author

xmlking commented May 17, 2018

Don’t remember how I fix it. I think I relax my orign regex on my IDP (keycloak)
You can check my repo , if that can help.
https://github.com/xmlking/nx-starter-kit

@yukund
Copy link

yukund commented May 17, 2018

cool , thank you :)

@ggjersund
Copy link

I'm having a similar problem, and I've might noticed something.

I'm using a catch all
const routes: Routes = [ { path: '', component: HomeComponent}, { path: 'signed-out', redirectTo: '' }, { path: '**', redirectTo: ''} ];
in my routes and I am wondering if its possible that Angular uses itself as referer to lookup the file silent-refresh.html upon redirect back? Also, does silent-refresh.html automatically recollect my userinfo?

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

4 participants