mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-24 22:26:29 +09:00
cli: list OAuth clients with all=true
An admin key sees clients only with it, as on Tailscale.
This commit is contained in:
1 parent
23a637290c
commit
0c304b0632
1 file changed
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user