cli: list OAuth clients with all=true

An admin key sees clients only with it, as on Tailscale.
This commit is contained in:
Kristoffer Dalby committed 2026-11-20 23:02:54 +01:00
1 parent 23a637290c
commit 0c304b0632
1 file changed
+2 -1
+2 -1
View File
@@ -103,7 +103,8 @@ var listOAuthClientsCmd = &cobra.Command{
}
defer cancel()
resp, err := client.ListKeysWithResponse(ctx, oauthTailnet, nil)
// As on Tailscale, an admin key lists OAuth clients only with all=true.
resp, err := client.ListKeysWithResponse(ctx, oauthTailnet, &clientv2.ListKeysParams{All: new(true)})
if err != nil {
return fmt.Errorf("listing oauth clients: %w", err)
}