You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug GetServerInfo use wrong URL to request the server info from the keycloak server.
the URL <base-path>/admin/realms should be replaced with <base-path>/admin/serverinfo.
this mistake exists in the keycloak documentation too, and that may be the reason for the wrong implementation.
To Reproduce
Steps to reproduce the behavior:
run keycloak version 20.0.3
create a client (*gocloak.GoCloak)
run client.LoginAdmin to get a token
run client.GetServerInfo(ctx, token.AccessToken)
Expected behavior
the return value should contains server information, like the keycloak version, but it contains just default values.
the return value should be a single ServerInfoRepresentation, but it is a slice of ServerInfoRepresentation.
keycloak documentation refer to the wrong URL path, but they also describe that only a single ServerInfoRepresentation should be return. see https://www.keycloak.org/docs-api/20.0.3/rest-api/index.html#_root_resource
Desktop
OS: windows 11
Keyclaok Version: 20.0.3
goclaok version: 13.1.0
The text was updated successfully, but these errors were encountered:
Describe the bug
GetServerInfo
use wrong URL to request the server info from the keycloak server.the URL
<base-path>/admin/realms
should be replaced with<base-path>/admin/serverinfo
.this mistake exists in the keycloak documentation too, and that may be the reason for the wrong implementation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the return value should contains server information, like the keycloak version, but it contains just default values.
the return value should be a single ServerInfoRepresentation, but it is a slice of ServerInfoRepresentation.
keycloak documentation refer to the wrong URL path, but they also describe that only a single ServerInfoRepresentation should be return. see https://www.keycloak.org/docs-api/20.0.3/rest-api/index.html#_root_resource
Desktop
The text was updated successfully, but these errors were encountered: