-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin SDK call urls wrong #161
Comments
What versions of packages do you use? |
version 2.5.5. For now, I used this workaround to replace url services |
Same problem. I was using version 2.5.3 and the problem is that /auth (old version of keycloak) was removed and doing the update to 2.5.5 the problem is exactly as described above. |
Yes, sorry, I've unlisted https://www.nuget.org/packages/Keycloak.AuthServices.Authentication |
I have the setup below and I am using keycloak 26
//My settings
"Keycloak": {
"realm": "myrealm-dev",
"auth-server-url": "http://localhost:8080",
"ssl-required": "none",
"verify-token-audience": false,
"resource": "myrealm-dev-api",
"credentials": {
"secret": ""
},
"confidential-port": 0
}
//On setup
var options = configuration.GetKeycloakOptions()!;
However, when I inject the IKeycloakUserClient on my class and call the method GetUser("myrealm-dev")
var users = await _keycloakUserClient.GetUsersWithResponseAsync("myrealm-dev");
The method return a response with 404 Status.
Analysing the problems and RequestMessage, I realized that url called is wrong
URL called =>
http://localhost:8080/realms/myrealm-dev/admin/realms/myrealm-dev/users
The correct endpoint should be "http://localhost:8080/admin/realms/myrealm-dev/users"
The text was updated successfully, but these errors were encountered: