From 8913779f810c25377c7b3bd169b7e0b992f16fed Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 29 Jan 2025 20:23:41 -0800 Subject: [PATCH] Fix IndieAuth endpoint requiring incorrectly defined query param (#4183) * fix(api): remove incorrectly required query param. Fixes #4163 * Commit updated API documentation --------- Co-authored-by: Owncast --- docs/api/index.html | 14 +- go.mod | 1 - go.sum | 55 +- openapi.yaml | 8 - .../handlers/generated/generated-types.gen.go | 7 +- webserver/handlers/generated/generated.gen.go | 863 +++++++----------- 6 files changed, 348 insertions(+), 600 deletions(-) diff --git a/docs/api/index.html b/docs/api/index.html index 221675260..8f1f1dcd7 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -1913,13 +1913,13 @@ The APIs used to configure the Owncast server, as well as power the web admin in " class="sc-dODueM sc-eHKghg fhLETC hIcgHh sc-enuJcz ibumEn">

Unexpected error

Request samples

Content type
application/json
{
  • "authHost": "string"
}

Response samples

Content type
application/json
{
  • "redirect": "string"
}

Handle the redirect from an IndieAuth server to continue the auth flow

query Parameters
state
required
string
code
required
string

Responses

Request samples

Content type
application/json
{
  • "authHost": "string"
}

Response samples

Content type
application/json
{
  • "redirect": "string"
}

Handle the redirect from an IndieAuth server to continue the auth flow

query Parameters
state
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "success": true
}

Handles the IndieAuth auth endpoint

Authorizations:
BasicAuth
query Parameters
client_id
required
string
redirect_uri
required
string
code_challenge
required
string
state
required
string
code
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "success": true
}

Handles the IndieAuth auth endpoint

Authorizations:
BasicAuth
query Parameters
client_id
required
string
redirect_uri
required
string
code_challenge
required
string
state
required
string

Responses

Request samples

Content type
application/json
{
  • "authHost": "string"
}

Response samples

Content type
application/json
{
  • "redirect": "string"
}

Handle the redirect from an IndieAuth server to continue the auth flow

query Parameters
state
required
string
code
required
string

Responses

Request samples

Content type
application/json
{
  • "authHost": "string"
}

Response samples

Content type
application/json
{
  • "redirect": "string"
}

Handle the redirect from an IndieAuth server to continue the auth flow

query Parameters
state
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "success": true
}

Handles the IndieAuth auth endpoint

Authorizations:
BasicAuth
query Parameters
client_id
required
string
redirect_uri
required
string
code_challenge
required
string
state
required
string
code
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "success": true
}

Handles the IndieAuth auth endpoint

Authorizations:
BasicAuth
query Parameters
client_id
required
string
redirect_uri
required
string
code_challenge
required
string
state
required
string

Responses

Request samples

Content type
application/json
{
  • "authHost": "string"
}

Response samples

Content type
application/json
{
  • "redirect": "string"
}

Handle the redirect from an IndieAuth server to continue the auth flow

query Parameters
state
required
string
code
required
string

Responses

Request samples

Content type
application/json
{
  • "authHost": "string"
}

Response samples

Content type
application/json
{
  • "redirect": "string"
}

Handle the redirect from an IndieAuth server to continue the auth flow

query Parameters
state
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "success": true
}

Handles the IndieAuth auth endpoint

Authorizations:
BasicAuth
query Parameters
client_id
required
string
redirect_uri
required
string
code_challenge
required
string
state
required
string
code
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "success": true
}

Handles the IndieAuth auth endpoint

Authorizations:
BasicAuth
query Parameters
client_id
required
string
redirect_uri
required
string
code_challenge
required
string
state
required
string

Responses