-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: add login type 'none' to prevent password login #8009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
22f0fa7
f432127
ce9d54c
0db4450
ab0d1d2
ca1cf2d
03299a3
94502d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- It's not possible to drop enum values from enum types, so the UP has "IF NOT | ||
-- EXISTS". |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TYPE login_type ADD VALUE IF NOT EXISTS 'none'; | ||
|
||
COMMENT ON TYPE login_type IS 'Specifies the method of authentication. "none" is a special case in which no authentication method is allowed.'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1517,6 +1517,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in | |
|
||
```json | ||
{ | ||
"disable_login": true, | ||
"email": "[email protected]", | ||
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6", | ||
"password": "string", | ||
|
@@ -1526,12 +1527,13 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in | |
|
||
### Properties | ||
|
||
| Name | Type | Required | Restrictions | Description | | ||
| ----------------- | ------ | -------- | ------------ | ----------- | | ||
| `email` | string | true | | | | ||
| `organization_id` | string | false | | | | ||
| `password` | string | true | | | | ||
| `username` | string | true | | | | ||
| Name | Type | Required | Restrictions | Description | | ||
| ----------------- | ------- | -------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `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. | | ||
| `email` | string | true | | | | ||
| `organization_id` | string | false | | | | ||
| `password` | string | false | | | | ||
| `username` | string | true | | | | ||
|
||
## codersdk.CreateWorkspaceBuildRequest | ||
|
||
|
@@ -2825,6 +2827,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in | |
| `github` | | ||
| `oidc` | | ||
| `token` | | ||
| `none` | | ||
|
||
## codersdk.LoginWithPasswordRequest | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ curl -X POST http://coder-server:8080/api/v2/users \ | |
|
||
```json | ||
{ | ||
"disable_login": true, | ||
"email": "[email protected]", | ||
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6", | ||
"password": "string", | ||
|
Uh oh!
There was an error while loading. Please reload this page.