This commit is contained in:
mr
2024-10-30 12:38:25 +01:00
parent 7198c40d30
commit d87883b57f
27 changed files with 536 additions and 755 deletions

View File

@@ -15,35 +15,10 @@
},
"basePath": "/oc",
"paths": {
"/auth/claims": {
"post": {
"tags": [
"auth"
],
"description": "enrich token with claims\n\u003cbr\u003e",
"operationId": "OAuthController.Claims",
"parameters": [
{
"in": "body",
"name": "body",
"description": "The token info",
"required": true,
"schema": {
"$ref": "#/definitions/models.Token"
}
}
],
"responses": {
"200": {
"description": "{string}"
}
}
}
},
"/auth/forward": {
"/forward": {
"get": {
"tags": [
"auth"
"oc-auth/controllersOAuthController"
],
"description": "auth forward\n\u003cbr\u003e",
"operationId": "OAuthController.AuthForward",
@@ -53,15 +28,6 @@
"name": "Authorization",
"description": "auth token",
"type": "string"
},
{
"in": "body",
"name": "body",
"description": "The workflow content",
"required": true,
"schema": {
"$ref": "#/definitions/models.workflow"
}
}
],
"responses": {
@@ -71,10 +37,10 @@
}
}
},
"/auth/introspect": {
"/introspect": {
"get": {
"tags": [
"auth"
"oc-auth/controllersOAuthController"
],
"description": "introspect token\n\u003cbr\u003e",
"operationId": "OAuthController.Introspection",
@@ -93,10 +59,10 @@
}
}
},
"/auth/ldap/login": {
"/ldap/login": {
"post": {
"tags": [
"auth"
"oc-auth/controllersOAuthController"
],
"description": "authenticate user\n\u003cbr\u003e",
"operationId": "OAuthController.Login",
@@ -118,10 +84,10 @@
}
}
},
"/auth/ldap/logout": {
"/ldap/logout": {
"delete": {
"tags": [
"auth"
"oc-auth/controllersOAuthController"
],
"description": "unauthenticate user\n\u003cbr\u003e",
"operationId": "OAuthController.Logout",
@@ -140,31 +106,6 @@
}
}
},
"/auth/refresh": {
"post": {
"tags": [
"auth"
],
"description": "introspect token\n\u003cbr\u003e",
"operationId": "OAuthController.Introspection",
"parameters": [
{
"in": "body",
"name": "body",
"description": "The token info",
"required": true,
"schema": {
"$ref": "#/definitions/models.Token"
}
}
],
"responses": {
"200": {
"description": "{string}"
}
}
}
},
"/permission/": {
"get": {
"tags": [
@@ -334,6 +275,31 @@
}
}
},
"/refresh": {
"post": {
"tags": [
"oc-auth/controllersOAuthController"
],
"description": "introspect token\n\u003cbr\u003e",
"operationId": "OAuthController.Introspection",
"parameters": [
{
"in": "body",
"name": "body",
"description": "The token info",
"required": true,
"schema": {
"$ref": "#/definitions/models.Token"
}
}
],
"responses": {
"200": {
"description": "{string}"
}
}
}
},
"/role/": {
"get": {
"tags": [
@@ -549,7 +515,7 @@
},
"tags": [
{
"name": "auth",
"name": "oc-auth/controllersOAuthController",
"description": "Operations about auth\n"
},
{

View File

@@ -12,28 +12,10 @@ info:
url: https://www.gnu.org/licenses/agpl-3.0.html
basePath: /oc
paths:
/auth/claims:
post:
tags:
- auth
description: |-
enrich token with claims
<br>
operationId: OAuthController.Claims
parameters:
- in: body
name: body
description: The token info
required: true
schema:
$ref: '#/definitions/models.Token'
responses:
"200":
description: '{string}'
/auth/forward:
/forward:
get:
tags:
- auth
- oc-auth/controllersOAuthController
description: |-
auth forward
<br>
@@ -43,19 +25,13 @@ paths:
name: Authorization
description: auth token
type: string
- in: body
name: body
description: The workflow content
required: true
schema:
$ref: '#/definitions/models.workflow'
responses:
"200":
description: '{string}'
/auth/introspect:
/introspect:
get:
tags:
- auth
- oc-auth/controllersOAuthController
description: |-
introspect token
<br>
@@ -68,10 +44,10 @@ paths:
responses:
"200":
description: '{string}'
/auth/ldap/login:
/ldap/login:
post:
tags:
- auth
- oc-auth/controllersOAuthController
description: |-
authenticate user
<br>
@@ -86,10 +62,10 @@ paths:
responses:
"200":
description: '{string}'
/auth/ldap/logout:
/ldap/logout:
delete:
tags:
- auth
- oc-auth/controllersOAuthController
description: |-
unauthenticate user
<br>
@@ -102,24 +78,6 @@ paths:
responses:
"200":
description: '{string}'
/auth/refresh:
post:
tags:
- auth
description: |-
introspect token
<br>
operationId: OAuthController.Introspection
parameters:
- in: body
name: body
description: The token info
required: true
schema:
$ref: '#/definitions/models.Token'
responses:
"200":
description: '{string}'
/permission/:
get:
tags:
@@ -246,6 +204,24 @@ paths:
responses:
"200":
description: '{auth} string'
/refresh:
post:
tags:
- oc-auth/controllersOAuthController
description: |-
introspect token
<br>
operationId: OAuthController.Introspection
parameters:
- in: body
name: body
description: The token info
required: true
schema:
$ref: '#/definitions/models.Token'
responses:
"200":
description: '{string}'
/role/:
get:
tags:
@@ -407,7 +383,7 @@ definitions:
title: workflow
type: object
tags:
- name: auth
- name: oc-auth/controllersOAuthController
description: |
Operations about auth
- name: role