mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
Merge branch 'main' of github.com:/coder/coder into dk/prebuilds
This commit is contained in:
1
docs/reference/api/general.md
generated
1
docs/reference/api/general.md
generated
@ -328,6 +328,7 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
],
|
||||
"client_id": "string",
|
||||
"client_secret": "string",
|
||||
"device_flow": true,
|
||||
"enterprise_base_url": "string"
|
||||
}
|
||||
},
|
||||
|
5
docs/reference/api/schemas.md
generated
5
docs/reference/api/schemas.md
generated
@ -1981,6 +1981,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
],
|
||||
"client_id": "string",
|
||||
"client_secret": "string",
|
||||
"device_flow": true,
|
||||
"enterprise_base_url": "string"
|
||||
}
|
||||
},
|
||||
@ -2451,6 +2452,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
],
|
||||
"client_id": "string",
|
||||
"client_secret": "string",
|
||||
"device_flow": true,
|
||||
"enterprise_base_url": "string"
|
||||
}
|
||||
},
|
||||
@ -3808,6 +3810,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
|
||||
],
|
||||
"client_id": "string",
|
||||
"client_secret": "string",
|
||||
"device_flow": true,
|
||||
"enterprise_base_url": "string"
|
||||
}
|
||||
}
|
||||
@ -3833,6 +3836,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
|
||||
],
|
||||
"client_id": "string",
|
||||
"client_secret": "string",
|
||||
"device_flow": true,
|
||||
"enterprise_base_url": "string"
|
||||
}
|
||||
```
|
||||
@ -3847,6 +3851,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
|
||||
| `allowed_teams` | array of string | false | | |
|
||||
| `client_id` | string | false | | |
|
||||
| `client_secret` | string | false | | |
|
||||
| `device_flow` | boolean | false | | |
|
||||
| `enterprise_base_url` | string | false | | |
|
||||
|
||||
## codersdk.OAuth2ProviderApp
|
||||
|
35
docs/reference/api/users.md
generated
35
docs/reference/api/users.md
generated
@ -337,6 +337,41 @@ curl -X GET http://coder-server:8080/api/v2/users/oauth2/github/callback \
|
||||
|
||||
To perform this operation, you must be authenticated. [Learn more](authentication.md).
|
||||
|
||||
## Get Github device auth
|
||||
|
||||
### Code samples
|
||||
|
||||
```shell
|
||||
# Example request using curl
|
||||
curl -X GET http://coder-server:8080/api/v2/users/oauth2/github/device \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Coder-Session-Token: API_KEY'
|
||||
```
|
||||
|
||||
`GET /users/oauth2/github/device`
|
||||
|
||||
### Example responses
|
||||
|
||||
> 200 Response
|
||||
|
||||
```json
|
||||
{
|
||||
"device_code": "string",
|
||||
"expires_in": 0,
|
||||
"interval": 0,
|
||||
"user_code": "string",
|
||||
"verification_uri": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Responses
|
||||
|
||||
| Status | Meaning | Description | Schema |
|
||||
|--------|---------------------------------------------------------|-------------|----------------------------------------------------------------------|
|
||||
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.ExternalAuthDevice](schemas.md#codersdkexternalauthdevice) |
|
||||
|
||||
To perform this operation, you must be authenticated. [Learn more](authentication.md).
|
||||
|
||||
## OpenID Connect Callback
|
||||
|
||||
### Code samples
|
||||
|
Reference in New Issue
Block a user