Skip to content

Commit

Permalink
Fix wrong fucntion signature
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-muecke committed Sep 13, 2021
1 parent 55a9df0 commit f3b6d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func (client *gocloak) LoginClient(ctx context.Context, clientID, clientSecret,

// LoginClientTokenExchange will exchange the presented token for a user's token
// Requires Token-Exchange is enabled: https://www.keycloak.org/docs/latest/securing_apps/index.html#_token-exchange
func (client *gocloak) LoginClientTokenExchange(ctx context.Context, clientID, clientSecret, realm, token, targetClient, userID string) (*JWT, error) {
func (client *gocloak) LoginClientTokenExchange(ctx context.Context, clientID, token, clientSecret, realm, targetClient, userID string) (*JWT, error) {
return client.GetToken(ctx, realm, TokenOptions{
ClientID: &clientID,
ClientSecret: &clientSecret,
Expand Down

0 comments on commit f3b6d89

Please sign in to comment.