You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/cli/convert-kubeconfig.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Flags:
31
31
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
32
32
--legacy set to true to get token with 'spn:' prefix in audience claim
33
33
-l, --login string Login method. Supported methods: devicecode, interactive, spn, ropc, msi, azurecli, azd, workloadidentity. It may be specified in AAD_LOGIN_METHOD environment variable (default "devicecode")
34
+
--login-hint string The login hint to pre-fill the username in the interactive login flow.
34
35
--password string password forropc login flow. It may be specifiedin AAD_USER_PRINCIPAL_PASSWORD or AZURE_PASSWORD environment variable
35
36
--pop-claims key=val,key2=val2 contains a comma-separated list of claims to attach to the pop token in the format key=val,key2=val2. At minimum, specify the ARM ID of the cluster as `u=ARM_ID`
36
37
--pop-enabled set to true to use a PoP token for authentication or false to use a regular bearer token
--legacy set to true to get token with 'spn:' prefix in audience claim
28
28
-l, --login string Login method. Supported methods: devicecode, interactive, spn, ropc, msi, azurecli, azd, workloadidentity. It may be specified in AAD_LOGIN_METHOD environment variable (default "devicecode")
29
+
--login-hint string The login hint to pre-fill the username in the interactive login flow.
29
30
--password string password forropc login flow. It may be specifiedin AAD_USER_PRINCIPAL_PASSWORD or AZURE_PASSWORD environment variable
30
31
--pop-claims key=val,key2=val2 contains a comma-separated list of claims to attach to the pop token in the format key=val,key2=val2. At minimum, specify the ARM ID of the cluster as `u=ARM_ID`
31
32
--pop-enabled set to true to use a PoP token for authentication or false to use a regular bearer token
Copy file name to clipboardExpand all lines: pkg/internal/token/options.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ type Options struct {
42
42
DisableInstanceDiscoverybool
43
43
httpClient*http.Client
44
44
RedirectURLstring
45
+
LoginHintstring
45
46
}
46
47
47
48
const (
@@ -121,6 +122,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
121
122
fs.BoolVar(&o.DisableEnvironmentOverride, "disable-environment-override", o.DisableEnvironmentOverride, "Enable or disable the use of env-variables. Default false")
122
123
fs.BoolVar(&o.DisableInstanceDiscovery, "disable-instance-discovery", o.DisableInstanceDiscovery, "set to true to disable instance discovery in environments with their own simple Identity Provider (not AAD) that do not have instance metadata discovery endpoint. Default false")
123
124
fs.StringVar(&o.RedirectURL, "redirect-url", o.RedirectURL, "The URL Microsoft Entra ID will redirect to with the access token. This is only used for interactive login. This is an optional parameter.")
125
+
fs.StringVar(&o.LoginHint, "login-hint", o.LoginHint, "The login hint to pre-fill the username in the interactive login flow.")
124
126
}
125
127
126
128
func (o*Options) Validate() error {
@@ -291,6 +293,7 @@ func (o *Options) ToString() string {
0 commit comments