Closed doobry-systemli closed 3 months ago
I think I addressed all the remarks from review. Unit tests for KeycloakController
are now also added.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
90.6% Coverage on New Code
0.0% Duplication on New Code
Meant to be used by our custom keycloak user provider that queries userli for users and credential validation.
Todo
How to test
stateless: true
(currently broken) insecurity.yaml
KEYCLOAK_API=1
in.env.local
List users:
curl --header "Authorization: Bearer insecure" 'http://192.168.60.99/api/keycloak?domain=example.org&search=user'
Get user:
curl --header "Authorization: Bearer insecure" 'http://192.168.60.99/api/keycloak/user/user@example.org?domain=example.org'
Validate credentials:
curl -X POST -i --header "Authorization: Bearer insecure" --data "domain=example.org" --data "password=password" 'http://192.168.60.99/api/keycloak/validate/user@example.org'