Skip to content

Commit

Permalink
fixes url for cache clearing (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyknows authored and Azuka committed Aug 18, 2019
1 parent 8c62b2c commit 6250e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keycloak/realm_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (rs *RealmService) Create(ctx context.Context, realm *RealmRepresentation)

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

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

0 comments on commit 6250e20

Please sign in to comment.