UPDATE: add routes to login with idp

This commit is contained in:
marcos-silva-rodrigues
2025-03-25 09:18:27 -03:00
parent ea9c0502b7
commit f1345472b5
8 changed files with 377 additions and 34 deletions
+82 -25
View File
@@ -110,16 +110,92 @@
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateIdentityProvider"
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthRefreshAccessTokenRes"
}
}
}
}
},
"tags": [
"Auth"
],
"security": [
{
"access-token": []
}
]
}
},
"/auth/idp/{name}": {
"get": {
"operationId": "AuthController_loginIdp",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthRefreshAccessTokenRes"
}
}
}
}
},
"tags": [
"Auth"
],
"security": [
{
"access-token": []
}
]
}
},
"/auth/idp/{name}/callback": {
"get": {
"operationId": "AuthController_callbackIdp",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
},
{
"name": "name",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
@@ -5889,25 +5965,6 @@
"accessToken"
]
},
"CreateIdentityProvider": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"issueUrl": {
"type": "string"
}
},
"required": [
"clientId",
"clientSecret",
"issueUrl"
]
},
"CreateConnectionDto": {
"type": "object",
"properties": {