Fully Working OAuth2Flow

This commit is contained in:
mr
2026-03-06 10:20:35 +01:00
parent 979747e288
commit 744caf9a5e
6 changed files with 120 additions and 46 deletions

View File

@@ -29,6 +29,13 @@
"description": "The consent challenge from Hydra",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "redirect",
"description": "explicit redirect by passed",
"required": true,
"type": "string"
}
],
"responses": {
@@ -282,6 +289,13 @@
"description": "The login challenge from Hydra",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "redirect",
"description": "explicit redirect by passed",
"required": true,
"type": "string"
}
],
"responses": {
@@ -304,8 +318,15 @@
"oc-auth/controllersOAuthController"
],
"description": "Authenticate user via LDAP and accept Hydra login challenge\n\u003cbr\u003e",
"operationId": "OAuthController.PostLogin",
"operationId": "OAuthController.Login",
"parameters": [
{
"in": "query",
"name": "redirect",
"description": "explicit redirect by passed",
"required": true,
"type": "string"
},
{
"in": "body",
"name": "body",
@@ -346,6 +367,13 @@
"description": "The logout challenge from Hydra",
"required": true,
"type": "string"
},
{
"in": "query",
"name": "redirect",
"description": "explicit redirect by passed",
"required": true,
"type": "string"
}
],
"responses": {
@@ -798,14 +826,29 @@
}
},
"definitions": {
"2432.0xc000460e70.false": {
"2432.0xc0004a0630.false": {
"title": "false",
"type": "object"
},
"4171.0xc000461050.false": {
"4171.0xc0004a0810.false": {
"title": "false",
"type": "object"
},
"auth_connectors.LoginRequest": {
"title": "LoginRequest",
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
},
"login_challenge": {
"type": "string"
}
}
},
"auth_connectors.IntrospectResult": {
"title": "IntrospectResult",
"type": "object",
@@ -821,7 +864,7 @@
"format": "int64"
},
"ext": {
"$ref": "#/definitions/4171.0xc000461050.false"
"$ref": "#/definitions/4171.0xc0004a0810.false"
},
"scope": {
"type": "string"
@@ -842,7 +885,7 @@
"type": "string"
},
"client": {
"$ref": "#/definitions/2432.0xc000460e70.false"
"$ref": "#/definitions/2432.0xc0004a0630.false"
},
"request_url": {
"type": "string"
@@ -858,21 +901,6 @@
}
}
},
"auth_connectors.LoginRequest": {
"title": "LoginRequest",
"type": "object",
"properties": {
"login_challenge": {
"type": "string"
},
"password": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"auth_connectors.Redirect": {
"title": "Redirect",
"type": "object",

View File

@@ -26,6 +26,11 @@ paths:
description: The consent challenge from Hydra
required: true
type: string
- in: query
name: redirect
description: explicit redirect by passed
required: true
type: string
responses:
"200":
description: ""
@@ -214,6 +219,11 @@ paths:
description: The login challenge from Hydra
required: true
type: string
- in: query
name: redirect
description: explicit redirect by passed
required: true
type: string
responses:
"200":
description: ""
@@ -229,8 +239,13 @@ paths:
description: |-
Authenticate user via LDAP and accept Hydra login challenge
<br>
operationId: OAuthController.PostLogin
operationId: OAuthController.Login
parameters:
- in: query
name: redirect
description: explicit redirect by passed
required: true
type: string
- in: body
name: body
description: Login credentials and challenge
@@ -260,6 +275,11 @@ paths:
description: The logout challenge from Hydra
required: true
type: string
- in: query
name: redirect
description: explicit redirect by passed
required: true
type: string
responses:
"200":
description: ""
@@ -593,12 +613,22 @@ paths:
"200":
description: ""
definitions:
2432.0xc000460e70.false:
2432.0xc0004a0630.false:
title: "false"
type: object
4171.0xc000461050.false:
4171.0xc0004a0810.false:
title: "false"
type: object
auth_connectors.LoginRequest:
title: LoginRequest
type: object
properties:
username:
type: string
password:
type: string
login_challenge:
type: string
auth_connectors.IntrospectResult:
title: IntrospectResult
type: object
@@ -611,7 +641,7 @@ definitions:
type: integer
format: int64
ext:
$ref: '#/definitions/4171.0xc000461050.false'
$ref: '#/definitions/4171.0xc0004a0810.false'
scope:
type: string
sub:
@@ -625,7 +655,7 @@ definitions:
challenge:
type: string
client:
$ref: '#/definitions/2432.0xc000460e70.false'
$ref: '#/definitions/2432.0xc0004a0630.false'
request_url:
type: string
session_id:
@@ -634,16 +664,6 @@ definitions:
type: boolean
subject:
type: string
auth_connectors.LoginRequest:
title: LoginRequest
type: object
properties:
login_challenge:
type: string
password:
type: string
username:
type: string
auth_connectors.Redirect:
title: Redirect
type: object