Skip to content

keycloak configuration

inferx-net edited this page Apr 27, 2025 · 3 revisions

Login keycloak: The default user is "admin" and password is "admin".

Create Realm "Inferx"

Create Client "infer_client" in Realm "Inferx"

  1. Enable Client authentication
  2. Add Valid redirect URI

http://[hostip]:1250/* http://[hostip]:81/* http://[hostip]:4000/*

  1. Add web origins

http://[hostip]:1250 http://[hostip]:81 http://[hostip]:4000

  1. Enable "Direct Access Grants Enabled"

Update KEYCLOAK_CLIENT_SECRET in docker-compose_blob.yml

Update the KEYCLOAK_URL with local address

Add user and set password: For example username: testuser1, password: test

Test Keycloak

curl -X POST "http://[hostip]:1260/authn/realms/inferx/protocol/openid-connect/token" -H "Content-Type: application/x-www-form-urlencoded" -d "client_id=infer_client" -d "client_secret=M2Dse5531tdtyipZdGizLEeoOVgziQRX" -d "username=testuser1" -d "password=test" -d "grant_type=password"

Clone this wiki locally