Configuring a proxy for outgoing Keycloak HTTP requests
Security Assertion Markup Language (SAML) allows you to access multiple web-based applications using a single set of authentication credentials. It is possible to configure Keycloak to access a SAML server via a preconfigured proxy in situations where Keycloak’s host doesn’t have direct access to the internet.
-
Open a terminal and log in to your instance of Package Security Manager as an admin.
-
Open your installer file, where the
docker-compose.yml
file is located by running the command:You can see all the files contained in your current directory location by running the command
ls -la
in the terminal. You can look for thedocker-compose.yml
file this way, if necessary. -
Open your
docker-compose.yml
file using your preferred file editor. -
Find the
Keycloak
service section of the file, and underenvironment:
, add the following lines: -
Save your work and close the file. To verify your changes were saved, you can run the command:
Here is an excerpt from a
docker-compose.yml
file to show you what your Keycloak section might look like. -
Restart your instance of Package Security Manager.
Was this page helpful?