0

last one week i tried Single sign on authentication (SSO) Front end is angular technologies. ( common keycloak-URL and common realm-name, client name only different ). keycloak version 21.1.0 , but I am always getting CORS issue ( realms/realm-name/protocol/openid-connect/token ).

keycloakconfig.json

{ "url": "https://keycloak.ipaddress", "realm": "realm-name", "clientId": "demo-testing", "ssl-required": "external", "verify-token-audience": true, "credentials": { "secret": "" }, "onLoad": "login-required", "checkLoginIframe": true, "checkLoginIframeInterval": 25, "loadUserProfileAtStartUp": true }

Nutty
  • 1
  • 1

1 Answers1

0

Had the same problem. The way I solved it was by going to the Keycloak Client, go to Web Origin and paste either * or your url

enter image description here

Solovastru Ioan
  • 125
  • 1
  • 6
  • Keycloak version 21 changed the url from /auth to /admin, once changed my redirect problem resolved. – Nutty Jul 16 '23 at 14:10