Skip to content

Commit 6250e20

Browse files
tommyknowsAzuka
authored andcommitted
fixes url for cache clearing (#17)
1 parent 8c62b2c commit 6250e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keycloak/realm_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (rs *RealmService) Create(ctx context.Context, realm *RealmRepresentation)
4848

4949
// Clear a realm's user cache
5050
func (rs *RealmService) ClearUserCache(ctx context.Context, realm string) error {
51-
path := "/{realm}/clear-user-cache"
51+
path := "/realms/{realm}/clear-user-cache"
5252
_, err := rs.client.newRequest(ctx).
5353
SetPathParams(map[string]string{
5454
"realm": realm,
@@ -60,7 +60,7 @@ func (rs *RealmService) ClearUserCache(ctx context.Context, realm string) error
6060

6161
// Clear a realm's cache
6262
func (rs *RealmService) ClearCache(ctx context.Context, realm string) error {
63-
path := "/{realm}/clear-realm-cache"
63+
path := "/realms/{realm}/clear-realm-cache"
6464
_, err := rs.client.newRequest(ctx).
6565
SetPathParams(map[string]string{
6666
"realm": realm,

0 commit comments

Comments
 (0)