Replies: 1 comment 5 replies
-
Please be aware that Apiman 2.2.3.Final is affected by a CVE https://nvd.nist.gov/vuln/detail/CVE-2022-47551 Apiman 2.2.3.Final is no longer supported in the upstream community. If you need support for an older version of Apiman, please speak to your support provider. If you try using Apiman 3.0.0.Final, you will probably have better luck. The reason for your issue is that Keycloak and Apiman are in the same container with the old images so they "talk" internally to each other inside the Docker container and that can cause weirdness. You can get around that by setting some environment variables in Keycloak to tell it what the frontend URL is. Which version of Keycloak you are using will dictate the name of the variable, but it used to be Edit: Please note also that you will need to make sure your redirect URLs are set correct in Keycloak admin console! |
Beta Was this translation helpful? Give feedback.
-
I have apiman v2.2.3 running in Docker behind an nginx reverse proxy and I can't work out how to redirect to the correct external URL once it returns from Keycloak.
The Keycloak realm is configured with the correct redirect URL (i.e. the external URL) and when I hit the apimanui page it correctly redirects to the Keycloak login page but it provides the URL of the internal container as the
redirect_url
.For example, it is accesible at
https://www.<mydomain>.com/apiman/apimanui
. When I navigate to this I get a302 Found
response redirecting me to Keycloak with the followingLocation
header:https://keycloak.<mydomain>.com/auth/realms/apiman/protocol/openid-connect/auth?response_type=code&client_id=apimanui&redirect_uri=http://<containerhostname>:8080/apimanui&state=584874f4-9383-4693-ace1-2d19ed989f31&login=true&scope=openid
Is it picking up the hostname of the apiman container and using this as the redirect? How do I tell it to use a different URL?
This doesn't appear to be related to the Keycloak redirect configuration as even if I add
http://<containerhostname>:8080/apimanui
as a valid redirect this is not accessible to my browser so will not work.Beta Was this translation helpful? Give feedback.
All reactions