update how oauth is handled

This commit is contained in:
maxDorninger
2025-09-13 18:42:34 +02:00
parent 1c81083e23
commit 8f5cc9329c
10 changed files with 89 additions and 189 deletions

View File

@@ -248,15 +248,15 @@ export interface paths {
patch?: never;
trace?: never;
};
'/api/v1/auth/oauth/{openid_provider_name}/authorize': {
'/api/v1/auth/oauth/authorize': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** Authorize */
get: operations['authorize_api_v1_auth_oauth__openid_provider_name__authorize_get'];
/** Oauth:Openid Connect.Cookie.Authorize */
get: operations['oauth_OpenID_Connect_cookie_authorize_api_v1_auth_oauth_authorize_get'];
put?: never;
post?: never;
delete?: never;
@@ -272,8 +272,11 @@ export interface paths {
path?: never;
cookie?: never;
};
/** Oauth:Callback */
get: operations['oauth_callback_api_v1_auth_oauth_callback_get'];
/**
* Oauth:Openid Connect.Cookie.Callback
* @description The response varies based on the authentication backend used.
*/
get: operations['oauth_OpenID_Connect_cookie_callback_api_v1_auth_oauth_callback_get'];
put?: never;
post?: never;
delete?: never;
@@ -969,6 +972,11 @@ export interface paths {
export type webhooks = Record<string, never>;
export interface components {
schemas: {
/** AuthMetadata */
AuthMetadata: {
/** Oauth Providers */
oauth_providers: string[];
};
/** BearerResponse */
BearerResponse: {
/** Access Token */
@@ -2299,20 +2307,18 @@ export interface operations {
[name: string]: unknown;
};
content: {
'application/json': {
[key: string]: unknown;
};
'application/json': components['schemas']['AuthMetadata'];
};
};
};
};
authorize_api_v1_auth_oauth__openid_provider_name__authorize_get: {
oauth_OpenID_Connect_cookie_authorize_api_v1_auth_oauth_authorize_get: {
parameters: {
query?: never;
header?: never;
path: {
openid_provider_name: string;
query?: {
scopes?: string[];
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
@@ -2337,10 +2343,13 @@ export interface operations {
};
};
};
oauth_callback_api_v1_auth_oauth_callback_get: {
oauth_OpenID_Connect_cookie_callback_api_v1_auth_oauth_callback_get: {
parameters: {
query?: {
access_token_state?: unknown;
code?: string | null;
code_verifier?: string | null;
state?: string | null;
error?: string | null;
};
header?: never;
path?: never;
@@ -2357,6 +2366,15 @@ export interface operations {
'application/json': unknown;
};
};
/** @description Bad Request */
400: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['ErrorModel'];
};
};
/** @description Validation Error */
422: {
headers: {