basic login service/state (#17)

This commit is contained in:
Michael Quigley
2022-08-02 13:23:31 -04:00
parent cf1abe7282
commit e699994ca5
26 changed files with 875 additions and 476 deletions

View File

@ -105,6 +105,34 @@ func init() {
}
}
},
"/login": {
"post": {
"tags": [
"identity"
],
"operationId": "login",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/loginRequest"
}
}
],
"responses": {
"200": {
"description": "login successful",
"schema": {
"$ref": "#/definitions/loginResponse"
}
},
"401": {
"description": "invalid login"
}
}
}
},
"/tunnel": {
"post": {
"security": [
@ -237,6 +265,20 @@ func init() {
"errorMessage": {
"type": "string"
},
"loginRequest": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"loginResponse": {
"type": "string"
},
"principal": {
"type": "object",
"properties": {
@ -378,6 +420,34 @@ func init() {
}
}
},
"/login": {
"post": {
"tags": [
"identity"
],
"operationId": "login",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/loginRequest"
}
}
],
"responses": {
"200": {
"description": "login successful",
"schema": {
"$ref": "#/definitions/loginResponse"
}
},
"401": {
"description": "invalid login"
}
}
}
},
"/tunnel": {
"post": {
"security": [
@ -510,6 +580,20 @@ func init() {
"errorMessage": {
"type": "string"
},
"loginRequest": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"loginResponse": {
"type": "string"
},
"principal": {
"type": "object",
"properties": {