UPDATE: new route to add identity provider

This commit is contained in:
marcos-silva-rodrigues
2025-03-24 07:58:26 -03:00
parent 1e5fe59d9c
commit ea9c0502b7
6 changed files with 120 additions and 6 deletions
+68
View File
@@ -93,6 +93,55 @@
]
}
},
"/auth/idp": {
"post": {
"operationId": "AuthController_addIdentityProvider",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
}
],
"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/sso/snowflake": {
"post": {
"operationId": "AuthController_snowflakeSignIn",
@@ -5840,6 +5889,25 @@
"accessToken"
]
},
"CreateIdentityProvider": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"issueUrl": {
"type": "string"
}
},
"required": [
"clientId",
"clientSecret",
"issueUrl"
]
},
"CreateConnectionDto": {
"type": "object",
"properties": {