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

Tokens rejected due to: Token (issuer) invalid #45

Open
eldarj opened this issue Apr 22, 2022 · 0 comments
Open

Tokens rejected due to: Token (issuer) invalid #45

eldarj opened this issue Apr 22, 2022 · 0 comments

Comments

@eldarj
Copy link

eldarj commented Apr 22, 2022

I have an issue with user login/access tokens being invalid, due to the issuer.

Related to this stevenmaguire/oauth2-keycloak/issues/43 but in my case, I don't have an issue with network topology, docker, etc., but with multiple domains pointing to the same Keycloak server.

Say, I have two domains pointing to Keycloak, and a single secured application. Depending on some circumstances I redirect users to either DomainA or DomainB pointing to same Keycloak.

The problem is that, because Keycloak sets the iss field and uses the URL that the user logged in, and because I can only set a single auth_server_url on the secured application, all tokens generated on DomainB ie. all users logging in there, will be denied access.

oauth2-keycloak will only accept tokens generated on DomainA ie. what's set for auth_server_url.

Is there a way to set multiple valid issuers or a set of valid auth_server_urls?

Any workarounds for this?

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

1 participant