Skip to content

Commit f4b4ae9

Browse files
author
Vincent Wilms
committed
Merge commit '465cefa97183c96f01270e872f87b2dbd4d55b58'
2 parents 7a9a2d7 + 465cefa commit f4b4ae9

30 files changed

+986
-634
lines changed

.vscode/launch.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"cwd": "${workspaceFolder}",
2020
"stopAtEntry": false,
2121
"env": {
22-
"NEXUS_SECURITY__OIDCIDENTIFIERCLAIM": "email",
2322
"ASPNETCORE_ENVIRONMENT": "Development"
2423
}
2524
},

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v2.0.0-beta.52 - 2025-03-05
2+
- Fix security issues #244 and #247
3+
14
## v2.0.0-beta.51 - 2025-03-04
25
- UI improvements
36

openapi.json

Lines changed: 58 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,42 @@
13651365
}
13661366
}
13671367
},
1368+
"/api/v1/users/tokens": {
1369+
"get": {
1370+
"tags": [
1371+
"Users"
1372+
],
1373+
"summary": "Gets all personal access tokens.",
1374+
"operationId": "Users_GetTokens",
1375+
"parameters": [
1376+
{
1377+
"name": "userId",
1378+
"in": "query",
1379+
"description": "The optional user identifier. If not specified, the current user will be used.",
1380+
"schema": {
1381+
"type": "string",
1382+
"nullable": true
1383+
},
1384+
"x-position": 1
1385+
}
1386+
],
1387+
"responses": {
1388+
"200": {
1389+
"description": "",
1390+
"content": {
1391+
"application/json": {
1392+
"schema": {
1393+
"type": "object",
1394+
"additionalProperties": {
1395+
"$ref": "#/components/schemas/PersonalAccessToken"
1396+
}
1397+
}
1398+
}
1399+
}
1400+
}
1401+
}
1402+
}
1403+
},
13681404
"/api/v1/users/tokens/create": {
13691405
"post": {
13701406
"tags": [
@@ -1686,42 +1722,6 @@
16861722
}
16871723
}
16881724
},
1689-
"/api/v1/users/{userId}/tokens": {
1690-
"get": {
1691-
"tags": [
1692-
"Users"
1693-
],
1694-
"summary": "Gets all personal access tokens.",
1695-
"operationId": "Users_GetTokens",
1696-
"parameters": [
1697-
{
1698-
"name": "userId",
1699-
"in": "path",
1700-
"required": true,
1701-
"description": "The identifier of the user.",
1702-
"schema": {
1703-
"type": "string"
1704-
},
1705-
"x-position": 1
1706-
}
1707-
],
1708-
"responses": {
1709-
"200": {
1710-
"description": "",
1711-
"content": {
1712-
"application/json": {
1713-
"schema": {
1714-
"type": "object",
1715-
"additionalProperties": {
1716-
"$ref": "#/components/schemas/PersonalAccessToken"
1717-
}
1718-
}
1719-
}
1720-
}
1721-
}
1722-
}
1723-
}
1724-
},
17251725
"/api/v1/writers/descriptions": {
17261726
"get": {
17271727
"tags": [
@@ -2287,17 +2287,6 @@
22872287
"$ref": "#/components/schemas/NexusUser"
22882288
}
22892289
]
2290-
},
2291-
"isAdmin": {
2292-
"type": "boolean",
2293-
"description": "A boolean which indicates if the user is an administrator."
2294-
},
2295-
"personalAccessTokens": {
2296-
"type": "object",
2297-
"description": "A list of personal access tokens.",
2298-
"additionalProperties": {
2299-
"$ref": "#/components/schemas/PersonalAccessToken"
2300-
}
23012290
}
23022291
}
23032292
},
@@ -2309,6 +2298,28 @@
23092298
"name": {
23102299
"type": "string",
23112300
"description": "The user name."
2301+
},
2302+
"claims": {
2303+
"type": "array",
2304+
"description": "The list of claims.",
2305+
"items": {
2306+
"$ref": "#/components/schemas/NexusClaim"
2307+
}
2308+
}
2309+
}
2310+
},
2311+
"NexusClaim": {
2312+
"type": "object",
2313+
"description": "Represents a claim.",
2314+
"additionalProperties": false,
2315+
"properties": {
2316+
"type": {
2317+
"type": "string",
2318+
"description": "The claim type."
2319+
},
2320+
"value": {
2321+
"type": "string",
2322+
"description": "The claim value."
23122323
}
23132324
}
23142325
},
@@ -2349,21 +2360,6 @@
23492360
"description": "The claim value."
23502361
}
23512362
}
2352-
},
2353-
"NexusClaim": {
2354-
"type": "object",
2355-
"description": "Represents a claim.",
2356-
"additionalProperties": false,
2357-
"properties": {
2358-
"type": {
2359-
"type": "string",
2360-
"description": "The claim type."
2361-
},
2362-
"value": {
2363-
"type": "string",
2364-
"description": "The claim value."
2365-
}
2366-
}
23672363
}
23682364
}
23692365
}

0 commit comments

Comments
 (0)