Sign inSign up

solsson/httpd-openidc

By solsson

•Updated over 6 years ago

mod_auth_openidc on official httpd image, verified with Keycloak using docker-compose

Image
2

50K+

solsson/httpd-openidc repository overview

⁠openidc-keycloak-test

Demonstrates Keycloak⁠ and mod_auth_openidc⁠ working together. See also https://github.com/pingidentity/mod_auth_openidc/wiki/Keycloak⁠.

Requirements:

  • Docker Compose >=1.7.0

See docker-compose.yml⁠ in the build-contracts⁠ folder.

Might be run like this:

compose="docker-compose -f build-contracts/docker-compose.yml"
$compose up --build -d keycloak openidc
$compose up --build keycloak-setup #TODO
$compose up --build -d testclient
$compose logs -f
# test session cache
$compose up -d keycloak openidc2

Until setup is fully automated see echo:s in testclient1/keycloak-setup/import.sh⁠.

If you can access ports locally, access the example site at http://openidc/⁠, with something like this in /etc/hosts (IP being you docker machine's):

127.0.0.1 openidc

Direct access to keycloak is at :8080. Auth should understand proxy, according to:

⁠Export and import

Export seems to⁠ require restart.

docker-compose -f build-contracts/docker-compose.yml -f build-contracts/export.docker-compose.yml up keycloak

Tag summary

Content type

Image

Digest

Size

60.4 MB

Last updated

over 6 years ago

docker pull solsson/httpd-openidc