mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-04 00:46:50 +00:00
Adds LDAP auth support
This commit is contained in:
@ -10,6 +10,24 @@
|
||||
"$ref": "file://./paths/get.json"
|
||||
}
|
||||
},
|
||||
"/auth": {
|
||||
"get": {
|
||||
"$ref": "file://./paths/auth/get.json"
|
||||
},
|
||||
"post": {
|
||||
"$ref": "file://./paths/auth/post.json"
|
||||
}
|
||||
},
|
||||
"/auth/refresh": {
|
||||
"post": {
|
||||
"$ref": "file://./paths/auth/refresh/post.json"
|
||||
}
|
||||
},
|
||||
"/auth/sse": {
|
||||
"post": {
|
||||
"$ref": "file://./paths/auth/sse/post.json"
|
||||
}
|
||||
},
|
||||
"/certificates": {
|
||||
"get": {
|
||||
"$ref": "file://./paths/certificates/get.json"
|
||||
@ -155,19 +173,6 @@
|
||||
"$ref": "file://./paths/streams/streamID/delete.json"
|
||||
}
|
||||
},
|
||||
"/tokens": {
|
||||
"get": {
|
||||
"$ref": "file://./paths/tokens/get.json"
|
||||
},
|
||||
"post": {
|
||||
"$ref": "file://./paths/tokens/post.json"
|
||||
}
|
||||
},
|
||||
"/tokens/sse": {
|
||||
"post": {
|
||||
"$ref": "file://./paths/tokens/sse/post.json"
|
||||
}
|
||||
},
|
||||
"/upstreams": {
|
||||
"get": {
|
||||
"$ref": "file://./paths/upstreams/get.json"
|
||||
@ -219,6 +224,9 @@
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
"AuthConfigObject": {
|
||||
"$ref": "file://./components/AuthConfigObject.json"
|
||||
},
|
||||
"CertificateAuthorityList": {
|
||||
"$ref": "file://./components/CertificateAuthorityList.json"
|
||||
},
|
||||
|
13
backend/embed/api_docs/components/AuthConfigObject.json
Normal file
13
backend/embed/api_docs/components/AuthConfigObject.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "array",
|
||||
"description": "AuthConfigObject",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"local",
|
||||
"ldap",
|
||||
"oidc"
|
||||
]
|
||||
}
|
||||
}
|
@ -7,7 +7,6 @@
|
||||
"created_at",
|
||||
"updated_at",
|
||||
"name",
|
||||
"nickname",
|
||||
"email",
|
||||
"is_disabled"
|
||||
],
|
||||
@ -29,12 +28,7 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 2,
|
||||
"maxLength": 100
|
||||
},
|
||||
"nickname": {
|
||||
"type": "string",
|
||||
"minLength": 2,
|
||||
"maxLength": 100
|
||||
"maxLength": 50
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
|
28
backend/embed/api_docs/paths/auth/get.json
Normal file
28
backend/embed/api_docs/paths/auth/get.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"operationId": "getAuthConfig",
|
||||
"summary": "Returns auth configuration",
|
||||
"tags": ["Auth"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "200 response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["result"],
|
||||
"properties": {
|
||||
"result": {
|
||||
"$ref": "#/components/schemas/AuthConfigObject"
|
||||
}
|
||||
}
|
||||
},
|
||||
"examples": {
|
||||
"default": {
|
||||
"value": "todo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"operationId": "requestToken",
|
||||
"summary": "Request a new access token from credentials",
|
||||
"tags": ["Tokens"],
|
||||
"tags": ["Auth"],
|
||||
"requestBody": {
|
||||
"description": "Credentials Payload",
|
||||
"required": true,
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"operationId": "refreshToken",
|
||||
"summary": "Refresh your access token",
|
||||
"tags": ["Tokens"],
|
||||
"tags": ["Auth"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "200 response",
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"operationId": "requestSSEToken",
|
||||
"summary": "Request a new SSE token",
|
||||
"tags": ["Tokens"],
|
||||
"tags": ["Auth"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "200 response",
|
@ -28,7 +28,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The sorting of the list",
|
||||
"example": "name,nickname.desc,email.asc"
|
||||
"example": "name,email.asc"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@ -57,10 +57,6 @@
|
||||
"field": "name",
|
||||
"direction": "ASC"
|
||||
},
|
||||
{
|
||||
"field": "nickname",
|
||||
"direction": "DESC"
|
||||
},
|
||||
{
|
||||
"field": "email",
|
||||
"direction": "ASC"
|
||||
@ -70,7 +66,6 @@
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Jamie Curnow",
|
||||
"nickname": "James",
|
||||
"email": "jc@jc21.com",
|
||||
"created_at": 1578010090000,
|
||||
"updated_at": 1578010095000,
|
||||
@ -81,7 +76,6 @@
|
||||
{
|
||||
"id": 2,
|
||||
"name": "John Doe",
|
||||
"nickname": "John",
|
||||
"email": "johdoe@example.com",
|
||||
"created_at": 1578010100000,
|
||||
"updated_at": 1578010105000,
|
||||
@ -95,7 +89,6 @@
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Jane Doe",
|
||||
"nickname": "Jane",
|
||||
"email": "janedoe@example.com",
|
||||
"created_at": 1578010110000,
|
||||
"updated_at": 1578010115000,
|
||||
|
@ -31,7 +31,6 @@
|
||||
"result": {
|
||||
"id": 1,
|
||||
"name": "Jamie Curnow",
|
||||
"nickname": "James",
|
||||
"email": "jc@jc21.com",
|
||||
"created_at": 1578010100000,
|
||||
"updated_at": 1578010100000,
|
||||
|
@ -43,7 +43,6 @@
|
||||
"result": {
|
||||
"id": 1,
|
||||
"name": "Jamie Curnow",
|
||||
"nickname": "James",
|
||||
"email": "jc@jc21.com",
|
||||
"created_at": 1578010100000,
|
||||
"updated_at": 1578010105000,
|
||||
|
@ -52,7 +52,6 @@
|
||||
"result": {
|
||||
"id": 1,
|
||||
"name": "Jamie Curnow",
|
||||
"nickname": "James",
|
||||
"email": "jc@jc21.com",
|
||||
"created_at": 1578010100000,
|
||||
"updated_at": 1578010110000,
|
||||
|
Reference in New Issue
Block a user