A simple Node.JS Docker image to act as a proxy for the Taxis userinfo oAuth2 endpoint
1.2K
Purpose
Run: docker run -p 3000:3000 gunet/taxis-proxy
Environment variables:
PORT=3000REMOTE_USERINFO=https://oauth2.gsis.gr/oauth2server/userinfo?format=xmlDocker compose example:
taxis-proxy:
image: gunet/taxis-proxy:latest
restart: unless-stopped
init: true
Keycloak configuration
http://<your-proxy-host>:<port>/userinfo (for instance if in Docker compose stack as above: http://taxis-proxy:3000/userinfo)
(Keycloak will call the proxy and the proxy forwards Authorization to the real endpoint.)sub or preferred_username -> Username (or leave Keycloak to use sub).family_name -> lastNamegiven_name -> firstNametax_id -> Your relevant attributefather_name, mother_name, birth_year) to user attributes (they will be available as user attributes).
The exact mapper type name depends on your Keycloak version (e.g., "User Attribute" / "Claim to User" / "Attribute Importer").Content type
Image
Digest
sha256:20137bed1…
Size
76 MB
Last updated
11 months ago
docker pull gunet/taxis-proxy