REFACTOR: rename openid to identity provider

This commit is contained in:
marcos-silva-rodrigues
2025-05-26 13:37:25 -03:00
parent a4b7573ce7
commit d5141e5b6a
13 changed files with 340 additions and 313 deletions
+104 -125
View File
@@ -101,131 +101,6 @@
]
}
},
"/auth/idp": {
"post": {
"operationId": "AuthController_addIdentityProvider",
"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}": {
"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": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthRefreshAccessTokenRes"
}
}
}
}
},
"tags": [
"Auth"
],
"security": [
{
"access-token": []
}
]
}
},
"/auth/sso/snowflake": {
"post": {
"operationId": "AuthController_snowflakeSignIn",
@@ -6004,6 +5879,50 @@
]
}
},
"/identity-providers": {
"post": {
"operationId": "IdentityProviderController_addIdentityProvider",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateIdentityProvider"
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdentityProviderResponse"
}
}
}
}
}
},
"get": {
"operationId": "IdentityProviderController_getProviders",
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdentityProviderListResponse"
}
}
}
}
}
}
},
"/network-policy": {
"get": {
"operationId": "NetworkPolicyController_getNetworks",
@@ -8960,6 +8879,66 @@
"theme"
]
},
"CreateIdentityProvider": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string"
},
"issueUrl": {
"type": "string"
}
},
"required": [
"name",
"clientId",
"clientSecret",
"issueUrl"
]
},
"IdentityProviderResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"clientId": {
"type": "string"
},
"issueUrl": {
"type": "string"
}
},
"required": [
"id",
"name",
"clientId",
"issueUrl"
]
},
"IdentityProviderListResponse": {
"type": "object",
"properties": {
"providers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/IdentityProviderResponse"
}
}
},
"required": [
"providers"
]
},
"NetworkPoliciesDTO": {
"type": "object",
"properties": {