{"repo":"zloom/keycloak-external-claim-mapper","free":true,"listed":false,"github":"https://github.com/zloom/keycloak-external-claim-mapper","clone":"git clone https://github.com/zloom/keycloak-external-claim-mapper.git","description":"Keycloak extension for fetching remote data to jwt","language":"Java","stars":15,"topics":["jwt","jwt-token","keycloak","user-data","user-profile","user-roles"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Keycloak External Claim Mapper Implementation of the keycloak internal SPI protocol-mapper, that allows to fetch remote http json data and include it into user JWT. Limitations Built and tested with Keycloak 25.0.0, maven 3.6.3, openjdk21, you can build and test with other versions if required. Installation To build Keycloak 25.0.0 image with extension from 0.0.2 release create dockerfile with following content: Build and run it with following command: Login and password are admin . Check http://localhost:8080/admin/master/console/#/master/providers and find external-claim-mapper if extension is picked up by Keycloak, it should be there. Check detailed development setup guide here. Configuration There are 5 fields to configure, except standard protocol mapper provider configuration. Remote url This is remote url to fetch json from, you can optionally use a placeholders to insert keycloak user id, user name and email. - Placeholders will work as following: assume your remote urls is http://localhost/user so that http://localhost/user/ uid / uname / email will be transformed to http://localhost/user/063943d2-d7ed-4bca-812b-506518c38228/test/test%40example.com given that 063943d2-d7ed-4bca-812b-506518c38228 is keycloak user id, test is user name and test@example.com is the email. Json path Optional json path expression to transform your remote endpoint response data. Given that Token Claim Name is configured as user roles and remote endpoint response is: In final jwt it will loo","default_branch":null,"files":null,"tree":[],"storefront":"/r/zloom","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zloom/keycloak-external-claim-mapper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}