Skip to content

Commit

Permalink
[CLOUDTRUST-4175] Add missing field in identityProviderRepresentation…
Browse files Browse the repository at this point in the history
… and correct delete client roles from user (#100)
  • Loading branch information
basbeu committed Jun 1, 2022
1 parent 9a97ec5 commit 07ede8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/client_role_mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func (c *Client) GetClientRoleMappings(accessToken string, realmName, userID, cl
}

// DeleteClientRolesFromUserRoleMapping deletes client-level roles from user role mapping.
func (c *Client) DeleteClientRolesFromUserRoleMapping(accessToken string, realmName, userID, clientID string) error {
return c.delete(accessToken, url.Path(clientRoleMappingPath), url.Param("realm", realmName), url.Param("id", userID), url.Param("client", clientID))
func (c *Client) DeleteClientRolesFromUserRoleMapping(accessToken string, realmName, userID, clientID string, roles []keycloak.RoleRepresentation) error {
return c.delete(accessToken, url.Path(clientRoleMappingPath), url.Param("realm", realmName), url.Param("id", userID), url.Param("client", clientID), body.JSON(roles))
}

// GetRealmLevelRoleMappings gets realm level role mappings
Expand Down
1 change: 1 addition & 0 deletions definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ type IdentityProviderMapperRepresentation struct {
type IdentityProviderRepresentation struct {
AddReadTokenRoleOnCreate *bool `json:"addReadTokenRoleOnCreate,omitempty"`
Alias *string `json:"alias,omitempty"`
AuthenticateByDefault *bool `json:"authenticateByDefault,omitempty"`
Config *map[string]interface{} `json:"config,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Expand Down

0 comments on commit 07ede8e

Please sign in to comment.