mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: add deprecation warning for login-type none (#24594)
The `--login-type none` option for `coder users create` is deprecated. This adds deprecation warnings to all docs that reference it and updates the CI/CD tutorial to recommend the replacement flows. Refs DEVEX-224 <details> <summary>Changes</summary> - `cli/usercreate.go`: Append deprecation notice to `--login-type` flag description. - `docs/tutorials/testing-templates.md`: Replace `--login-type none` example with separate Premium (`--service-account`) and OSS (`--login-type password`) examples. - `docs/reference/cli/users_create.md`: Regenerated from CLI source. - `cli/testdata/coder_users_create_--help.golden`: Updated golden snapshot. </details> > [!NOTE] > Generated by Coder Agents.
This commit is contained in:
+5
-2
@@ -35,10 +35,13 @@ const (
|
||||
LoginTypeGithub LoginType = "github"
|
||||
LoginTypeOIDC LoginType = "oidc"
|
||||
LoginTypeToken LoginType = "token"
|
||||
// LoginTypeNone is used if no login method is available for this user.
|
||||
// If this is set, the user has no method of logging in.
|
||||
// LoginTypeNone is used if no login method is available for this
|
||||
// user. If this is set, the user has no method of logging in.
|
||||
// API keys can still be created by an owner and used by the user.
|
||||
// These keys would use the `LoginTypeToken` type.
|
||||
//
|
||||
// Deprecated: Use service accounts (Premium) for headless/machine
|
||||
// access, or password/github/oidc login types for regular users.
|
||||
LoginTypeNone LoginType = "none"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user