Logout endpoint (#47)

Delete in memory session when user logout from mcs

lint fixes

Click logout button triggers logout request

Clicking the actual logout button send the POST /logout request on mcs
UI

Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
This commit is contained in:
Lenin Alevski
2020-04-08 12:36:14 -07:00
committed by GitHub
parent c85067dfba
commit ff2438a877
14 changed files with 540 additions and 7 deletions

View File

@@ -691,6 +691,26 @@ func init() {
}
}
},
"/logout": {
"post": {
"tags": [
"UserAPI"
],
"summary": "Logout from mcs.",
"operationId": "Logout",
"responses": {
"200": {
"description": "A successful response."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/policies": {
"get": {
"tags": [
@@ -2263,6 +2283,26 @@ func init() {
}
}
},
"/logout": {
"post": {
"tags": [
"UserAPI"
],
"summary": "Logout from mcs.",
"operationId": "Logout",
"responses": {
"200": {
"description": "A successful response."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/policies": {
"get": {
"tags": [