Skip to content

Commit b45ee79

Browse files
committed
fix: remove authentication requirement for /users/login
This was noticed by a member of our Discord being incorrectly documented! https://discord.com/channels/747933592273027093/1063494965130432632/1063503805016182875
1 parent 269e0b3 commit b45ee79

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

coderd/apidoc/docs.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2615,11 +2615,6 @@ const docTemplate = `{
26152615
},
26162616
"/users/login": {
26172617
"post": {
2618-
"security": [
2619-
{
2620-
"CoderSessionToken": []
2621-
}
2622-
],
26232618
"produces": [
26242619
"application/json"
26252620
],

coderd/apidoc/swagger.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,11 +2301,6 @@
23012301
},
23022302
"/users/login": {
23032303
"post": {
2304-
"security": [
2305-
{
2306-
"CoderSessionToken": []
2307-
}
2308-
],
23092304
"produces": ["application/json"],
23102305
"tags": ["Authorization"],
23112306
"summary": "Log in user",

coderd/users.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ func (api *API) organizationByUserAndName(rw http.ResponseWriter, r *http.Reques
989989
//
990990
// @Summary Log in user
991991
// @ID log-in-user
992-
// @Security CoderSessionToken
993992
// @Produce json
994993
// @Tags Authorization
995994
// @Param request body codersdk.LoginWithPasswordRequest true "Login request"

docs/api/authorization.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ To perform this operation, you must be authenticated. [Learn more](authenticatio
7676
# Example request using curl
7777
curl -X POST http://coder-server:8080/api/v2/users/login \
7878
-H 'Content-Type: application/json' \
79-
-H 'Accept: application/json' \
80-
-H 'Coder-Session-Token: API_KEY'
79+
-H 'Accept: application/json'
8180
```
8281

8382
`POST /users/login`
@@ -112,5 +111,3 @@ curl -X POST http://coder-server:8080/api/v2/users/login \
112111
| Status | Meaning | Description | Schema |
113112
| ------ | ------------------------------------------------------------ | ----------- | ---------------------------------------------------------------------------------- |
114113
| 201 | [Created](https://tools.ietf.org/html/rfc7231#section-6.3.2) | Created | [codersdk.LoginWithPasswordResponse](schemas.md#codersdkloginwithpasswordresponse) |
115-
116-
To perform this operation, you must be authenticated. [Learn more](authentication.md).

0 commit comments

Comments
 (0)