oidc
Initiate the OIDC authorization flow for a native app.
The app generates a PKCE code_verifier and code_challenge, then calls this endpoint. The server forwards the code_challenge to the OIDC provider and returns the authorization URL for the app to open in a browser.
post/auth/oidc/external/authorize
Request body
Example request
{
"code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
"name": "Android Phone",
"redirect_uri": "gotify://oidc/callback"
}Response
Ok
Example response
{
"authorize_url": "https://auth.example.com/authorize?client_id=gotify&...",
"state": "Android Phone:a1b2c3d4e5f6"
}