mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 09:06:24 +00:00
Add new arguments to `tailscale up` so authkeys can be generated dynamically via identity federation. Updates #9192 Signed-off-by: mcoulombe <max@tailscale.com>
20 lines
760 B
Go
20 lines
760 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package tailscale
|
|
|
|
import (
|
|
"context"
|
|
|
|
"tailscale.com/feature"
|
|
)
|
|
|
|
// HookResolveAuthKeyViaWIF resolves to [identityfederation.ResolveAuthKey] when the
|
|
// corresponding feature tag is enabled in the build process.
|
|
//
|
|
// baseURL is the URL of the control server used for token exchange and authkey generation.
|
|
// clientID is the federated client ID used for token exchange, the format is <tailnet ID>/<oauth client ID>
|
|
// idToken is the Identity token from the identity provider
|
|
// tags is the list of tags to be associated with the auth key
|
|
var HookResolveAuthKeyViaWIF feature.Hook[func(ctx context.Context, baseURL, clientID, idToken string, tags []string) (string, error)]
|