Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions connector/saml/saml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ func runVerify(t *testing.T, ca string, resp string, shouldSucceed bool) {
s := certStore{[]*x509.Certificate{cert}}

validator := dsig.NewDefaultValidationContext(s)
// Pin the validator's clock so signature checks don't fail once the
// fixture certs in testdata/ eventually expire in real time.
validator.Clock = dsig.NewFakeClockAt(time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC))

data, err := os.ReadFile(resp)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions storage/kubernetes/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func (cli *client) DeleteClient(ctx context.Context, id string) error {
if err != nil {
return err
}
return cli.delete(resourceClient, c.Name)
return cli.delete(resourceClient, c.ObjectMeta.Name)
}

func (cli *client) DeleteRefresh(ctx context.Context, id string) error {
Expand Down Expand Up @@ -493,7 +493,7 @@ func (cli *client) UpdateClient(ctx context.Context, id string, updater func(old

newClient := cli.fromStorageClient(updated)
newClient.ObjectMeta = c.ObjectMeta
return cli.put(resourceClient, c.Name, newClient)
return cli.put(resourceClient, c.ObjectMeta.Name, newClient)
}

func (cli *client) UpdatePassword(ctx context.Context, email string, updater func(old storage.Password) (storage.Password, error)) error {
Expand Down
Loading