mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Fix error on identity validation endpoints in documentation
This commit is contained in:
parent
2cc854b968
commit
50bf51aed0
102
doc/api_data.js
102
doc/api_data.js
|
@ -384,12 +384,13 @@ define({ "api": [
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 204": [
|
||||
"Success 200": [
|
||||
{
|
||||
"group": "Success 204",
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"optional": false,
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -404,14 +405,6 @@ define({ "api": [
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -462,12 +455,13 @@ define({ "api": [
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 204": [
|
||||
"Success 200": [
|
||||
{
|
||||
"group": "Success 204",
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"optional": false,
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -482,14 +476,6 @@ define({ "api": [
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -657,13 +643,12 @@ define({ "api": [
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 200": [
|
||||
"Success 204": [
|
||||
{
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"group": "Success 204",
|
||||
"optional": false,
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -678,6 +663,14 @@ define({ "api": [
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -715,13 +708,12 @@ define({ "api": [
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 200": [
|
||||
"Success 204": [
|
||||
{
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"group": "Success 204",
|
||||
"optional": false,
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -736,6 +728,14 @@ define({ "api": [
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -773,13 +773,12 @@ define({ "api": [
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 200": [
|
||||
"Success 204": [
|
||||
{
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"group": "Success 204",
|
||||
"optional": false,
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -794,6 +793,14 @@ define({ "api": [
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -845,12 +852,13 @@ define({ "api": [
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 204": [
|
||||
"Success 200": [
|
||||
{
|
||||
"group": "Success 204",
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"optional": false,
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -865,14 +873,6 @@ define({ "api": [
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
|
|
@ -384,12 +384,13 @@
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 204": [
|
||||
"Success 200": [
|
||||
{
|
||||
"group": "Success 204",
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"optional": false,
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -404,14 +405,6 @@
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -462,12 +455,13 @@
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 204": [
|
||||
"Success 200": [
|
||||
{
|
||||
"group": "Success 204",
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"optional": false,
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -482,14 +476,6 @@
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -657,13 +643,12 @@
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 200": [
|
||||
"Success 204": [
|
||||
{
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"group": "Success 204",
|
||||
"optional": false,
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -678,6 +663,14 @@
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -715,13 +708,12 @@
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 200": [
|
||||
"Success 204": [
|
||||
{
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"group": "Success 204",
|
||||
"optional": false,
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -736,6 +728,14 @@
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -773,13 +773,12 @@
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 200": [
|
||||
"Success 204": [
|
||||
{
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"group": "Success 204",
|
||||
"optional": false,
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -794,6 +793,14 @@
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
@ -845,12 +852,13 @@
|
|||
},
|
||||
"success": {
|
||||
"fields": {
|
||||
"Success 204": [
|
||||
"Success 200": [
|
||||
{
|
||||
"group": "Success 204",
|
||||
"group": "Success 200",
|
||||
"type": "String",
|
||||
"optional": false,
|
||||
"field": "status",
|
||||
"description": "<p>Identity validation has been initiated.</p>"
|
||||
"field": "content",
|
||||
"description": "<p>The content of the page.</p>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -865,14 +873,6 @@
|
|||
"description": "<p>Access is denied.</p>"
|
||||
}
|
||||
],
|
||||
"Error 400": [
|
||||
{
|
||||
"group": "Error 400",
|
||||
"optional": false,
|
||||
"field": "InvalidIdentity",
|
||||
"description": "<p>User identity is invalid.</p>"
|
||||
}
|
||||
],
|
||||
"Error 500": [
|
||||
{
|
||||
"group": "Error 500",
|
||||
|
|
|
@ -8,7 +8,7 @@ define({
|
|||
"apidoc": "0.3.0",
|
||||
"generator": {
|
||||
"name": "apidoc",
|
||||
"time": "2017-01-29T00:33:20.669Z",
|
||||
"time": "2017-01-29T00:44:17.687Z",
|
||||
"url": "http://apidocjs.com",
|
||||
"version": "0.17.5"
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"apidoc": "0.3.0",
|
||||
"generator": {
|
||||
"name": "apidoc",
|
||||
"time": "2017-01-29T00:33:20.669Z",
|
||||
"time": "2017-01-29T00:44:17.687Z",
|
||||
"url": "http://apidocjs.com",
|
||||
"version": "0.17.5"
|
||||
}
|
||||
|
|
|
@ -19,10 +19,11 @@ function setup_endpoints(app) {
|
|||
*/
|
||||
|
||||
/**
|
||||
* @apiDefine IdentityValidationDesc
|
||||
* @apiDefine IdentityValidationPost
|
||||
*
|
||||
* @apiSuccess (Success 200) {String} content The content of the page.
|
||||
* @apiSuccess (Success 204) status Identity validation has been initiated.
|
||||
* @apiError (Error 403) AccessDenied Access is denied.
|
||||
* @apiError (Error 400) InvalidIdentity User identity is invalid.
|
||||
* @apiError (Error 500) {String} error Internal error message.
|
||||
*
|
||||
* @apiDescription This request issue an identity validation token for the user
|
||||
|
@ -32,11 +33,10 @@ function setup_endpoints(app) {
|
|||
*/
|
||||
|
||||
/**
|
||||
* @apiDefine IdentityValidationParam
|
||||
* @apiDefine IdentityValidationGet
|
||||
* @apiParam {String} identity_token The one-time identity validation token provided in the email.
|
||||
* @apiSuccess (Success 204) status Identity validation has been initiated.
|
||||
* @apiSuccess (Success 200) {String} content The content of the page.
|
||||
* @apiError (Error 403) AccessDenied Access is denied.
|
||||
* @apiError (Error 400) InvalidIdentity User identity is invalid.
|
||||
* @apiError (Error 500) {String} error Internal error message.
|
||||
*/
|
||||
|
||||
|
@ -73,7 +73,7 @@ function setup_endpoints(app) {
|
|||
* @apiGroup Registration
|
||||
* @apiVersion 1.0.0
|
||||
* @apiUse UserSession
|
||||
* @apiUse IdentityValidationDesc
|
||||
* @apiUse IdentityValidationPost
|
||||
*/
|
||||
/**
|
||||
* @api {get} /authentication/totp-register Serve TOTP registration page
|
||||
|
@ -81,7 +81,7 @@ function setup_endpoints(app) {
|
|||
* @apiGroup Registration
|
||||
* @apiVersion 1.0.0
|
||||
* @apiUse UserSession
|
||||
* @apiUse IdentityValidationParam
|
||||
* @apiUse IdentityValidationGet
|
||||
*
|
||||
*
|
||||
* @apiDescription Serves the TOTP registration page that displays the secret.
|
||||
|
@ -96,7 +96,7 @@ function setup_endpoints(app) {
|
|||
* @apiGroup Registration
|
||||
* @apiVersion 1.0.0
|
||||
* @apiUse UserSession
|
||||
* @apiUse IdentityValidationDesc
|
||||
* @apiUse IdentityValidationPost
|
||||
*/
|
||||
/**
|
||||
* @api {get} /authentication/u2f-register Serve U2F registration page
|
||||
|
@ -104,7 +104,7 @@ function setup_endpoints(app) {
|
|||
* @apiGroup Pages
|
||||
* @apiVersion 1.0.0
|
||||
* @apiUse UserSession
|
||||
* @apiUse IdentityValidationParam
|
||||
* @apiUse IdentityValidationGet
|
||||
*
|
||||
* @apiDescription Serves the U2F registration page that asks the user to
|
||||
* touch the token of the U2F device.
|
||||
|
@ -117,7 +117,7 @@ function setup_endpoints(app) {
|
|||
* @apiGroup Registration
|
||||
* @apiVersion 1.0.0
|
||||
* @apiUse UserSession
|
||||
* @apiUse IdentityValidationDesc
|
||||
* @apiUse IdentityValidationPost
|
||||
*/
|
||||
/**
|
||||
* @api {get} /authentication/reset-password Serve password reset form.
|
||||
|
@ -125,7 +125,7 @@ function setup_endpoints(app) {
|
|||
* @apiGroup Pages
|
||||
* @apiVersion 1.0.0
|
||||
* @apiUse UserSession
|
||||
* @apiUse IdentityValidationParam
|
||||
* @apiUse IdentityValidationGet
|
||||
*
|
||||
* @apiDescription Serves password reset form that allow the user to provide
|
||||
* the new password.
|
||||
|
|
Loading…
Reference in New Issue
Block a user