Skip to content

Commit

Permalink
fix: revert patch on GetGenericClientProtocolMappers (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trois-Six authored Mar 23, 2020
1 parent 4f9da63 commit 0b3f62e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions keycloak/generic_client_protocol_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func (keycloakClient *KeycloakClient) NewGenericClientProtocolMapper(genericClie
return nil
}

func (keycloakClient *KeycloakClient) GetGenericClientProtocolMappers(realmId string, clientId string, clientScopeId string, mapperId string) (*OpenidClientWithGenericClientProtocolMappers, error) {
func (keycloakClient *KeycloakClient) GetGenericClientProtocolMappers(realmId string, clientId string) (*OpenidClientWithGenericClientProtocolMappers, error) {
var openidClientWithGenericClientProtocolMappers OpenidClientWithGenericClientProtocolMappers

err := keycloakClient.get(individualProtocolMapperPath(realmId, clientId, clientScopeId, mapperId), &openidClientWithGenericClientProtocolMappers, nil)
err := keycloakClient.get(fmt.Sprintf("/realms/%s/clients/%s", realmId, clientId), &openidClientWithGenericClientProtocolMappers, nil)
if err != nil {
return nil, err
}
Expand All @@ -47,7 +47,6 @@ func (keycloakClient *KeycloakClient) GetGenericClientProtocolMappers(realmId st
for _, protocolMapper := range openidClientWithGenericClientProtocolMappers.ProtocolMappers {
protocolMapper.RealmId = realmId
protocolMapper.ClientId = clientId
protocolMapper.ClientScopeId = clientScopeId
}

return &openidClientWithGenericClientProtocolMappers, nil
Expand Down

0 comments on commit 0b3f62e

Please sign in to comment.