From a31e9b183ecfa9fe7abfae46750e454aa6ba244f Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 4 Jun 2021 08:40:08 +0200 Subject: [PATCH] add invalid_token error to openapi spec --- support/doc/api/openapi.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index ae4855878..6c5a15087 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -960,6 +960,12 @@ paths: Disambiguate via `type`: - `invalid_client` for an unmatched `client_id` - `invalid_grant` for unmatched credentials + '401': + x-summary: token expired + description: | + Disambiguate via `type`: + - default value for a regular authentication failure + - `invalid_token` for an expired token x-codeSamples: - lang: Shell source: |