Skip to content

Commit

Permalink
Switch passing invitation token from path to url.Values (#115)
Browse files Browse the repository at this point in the history
`invitations/INV/TOKEN` becomes `invitations/INV?token=TOKEN`

This fixes RBAC where the token was seen as a sub-resource.
  • Loading branch information
bastjan authored Mar 3, 2023
1 parent af5cae1 commit 8c70dc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apiserver/user/invitation_redeem.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func (ir *invitationRedeemer) ConnectMethods() []string {
}

func (ir *invitationRedeemer) NewConnectOptions() (runtime.Object, bool, string) {
// Adds the token from the path to the options under the field "token"
return &userv1.RedeemOptions{}, true, "token"
return &userv1.RedeemOptions{}, false, ""
}

// Connect implements the REDEEM method for invitations.
Expand Down

0 comments on commit 8c70dc0

Please sign in to comment.