microcks / microcks

The open source, cloud native tool for API Mocking and Testing. Microcks is a Cloud Native Computing Foundation sandbox project 🚀
https://microcks.io
Apache License 2.0
1.36k stars 211 forks source link

External KeycloakX causing failed authentication #1340

Open luisnarquel opened 2 hours ago

luisnarquel commented 2 hours ago

Hey!

I've been trying to make Microcks work with my existing instance of KeycloakX using the following helm chart

https://github.com/codecentric/helm-charts/tree/master/charts/keycloakx

I'm able to get to the first login page on Keycloak and input the admin/microcks123 credentials, but then i get "Failed to initialize authentication system"

I get no logs on both Microcks and Keycloak when this happens.

On my browser i can see that i get redirected to Keycloak:

https://keycloak.localdev.me/realms/microcks/protocol/openid-connect/auth?client_id=microcks-app-js&redirect_uri=https%3A%2F%2Fmicrocks.localdev.me%2F&state=42a3df29-66ca-40b8-bc8a-2e0ed402425a&response_mode=fragment&response_type=code&scope=openid&nonce=f52d3b28-38ff-45c0-9e0f-4dc75c511ccf

And then back to Microcks:

https://microcks.localdev.me/#state=42a3df29-66ca-40b8-bc8a-2e0ed402425a&session_state=4fb4ddea-e45c-4f0f-9fed-3bd295e9446e&iss=https%3A%2F%2Fkeycloak.localdev.me%2Frealms%2Fmicrocks&code=04f62a23-2534-49ec-9046-2a3a59647887.4fb4ddea-e45c-4f0f-9fed-3bd295e9446e.2a0c8aa9-7792-48ab-8709-5ac9c70739ef

I'm using the following values.yaml for Microcks:

microcks:
  url: "microcks.localdev.me"
  ingressClassName: nginx
  logLevel: DEBUG
keycloak:
  enabled: true
  install: false
  url: "keycloak.localdev.me"
  privateUrl: http://keycloak-keycloakx-http.keycloak.svc.cluster.local:8080
  generateCert: true

Any idea what i might be missing?

github-actions[bot] commented 2 hours ago

👋 @luisnarquel

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first issue here! Be sure to follow the issue template or please update it accordingly.

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Hope you have a great time there!

🌟 ~~~~~ 🌟

📢 If you like Microcks, please ⭐ star ⭐ our repo to support it!

🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.