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
feat: add login type 'none' to prevent password login (#8009)
* feat: add login type 'none' to prevent login
Users with this login type must use tokens to authenticate.
Tokens must come from some other source, not a /login with password
authentication
Run `+cliui.DefaultStyles.Code.Render("coder login "+client.URL.String())+` to authenticate.
79
86
80
87
Your email is: `+cliui.DefaultStyles.Field.Render(email)+`
81
-
Your password is: `+cliui.DefaultStyles.Field.Render(password)+`
88
+
`+authenticationMethod+`
82
89
83
90
Create a workspace `+cliui.DefaultStyles.Code.Render("coder create")+`!`)
84
91
returnnil
@@ -103,6 +110,12 @@ Create a workspace `+cliui.DefaultStyles.Code.Render("coder create")+`!`)
103
110
Description: "Specifies a password for the new user.",
104
111
Value: clibase.StringOf(&password),
105
112
},
113
+
{
114
+
Flag: "disable-login",
115
+
Description: "Disabling login for a user prevents the user from authenticating via password or IdP login. Authentication requires an API key/token generated by an admin. "+
116
+
"Be careful when using this flag as it can lock the user out of their account.",
|`disable_login`| boolean | false || Disable login sets the user's login type to 'none'. This prevents the user from being able to use a password or any other authentication method to login. |
1535
+
|`email`| string | true |||
1536
+
|`organization_id`| string | false |||
1537
+
|`password`| string | false |||
1538
+
|`username`| string | true |||
1537
1539
1538
1540
## codersdk.CreateWorkspaceBuildRequest
1539
1541
@@ -2827,6 +2829,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
0 commit comments