Skip to content

Commit

Permalink
Merge pull request #305 from moritz-muecke/wrong-function-signature-t…
Browse files Browse the repository at this point in the history
…oken-exchange

Fix wrong function signature
  • Loading branch information
Nerzal authored Sep 14, 2021
2 parents 55a9df0 + f3b6d89 commit 028d382
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 028d382

Please sign in to comment.