I'm using the Keycloak authorization server in order to manage my application permissions. However, I've found out the standalone server can be accessed locally only.
http://localhost:8080/auth
works, but not it does http://myhostname:8080/auth
. This issue doesn't permit accessing the server from the internal network.
Open command prompt and run docker-compose up to run keycloak. Open browser and enter the keycloak url. Click on Administration Console. Default username and password is 'admin' , 'admin'.
If you run basic bin/standalone.sh without changing any configuration, your keycloak server will be started on port 8080 . Port 9990 is not your keycloak server, it is WildFly one. You are also using offset wrong. Basically, offset is the number you increment your original port ( 8080 ) for.
Configure Keycloak to authenticate your cbioportal instance. Log in to your Keycloak Identity Provider, e.g. http://localhost:8080/auth, as an admin user. ⚠️ when setting this up on something else than localhost (e.g. production), you will need to use/enable https on your Keycloak server.
The standalone Keycloak server runs on the top of a JBoss Wildfly instance and this server doesn't allow accessing it externally by default, for security reasons (it should be only for the administration console, but seems to affect every url in case of Keycloak). It has to be booted with the -b=0.0.0.0
option to enable it.
However, if your Wildfly is running on a remote machine and you try to access your administrative page through the network by it’s IP address or hostname, let’s say, at http://54.94.240.170:8080/, you will probably see a graceful This webpage is not available error, in another words, Wildfly said “No, thanks, I’m not allowing requests from another guys than the ones at my local machine”.
See also:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With