aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorDan <djr2468@gmail.com>2023-04-02 13:51:46 +0100
committerDan <djr2468@gmail.com>2023-04-02 13:51:46 +0100
commit2cc1cb3c7530fdabb750a9e0b5cc26e3e2286185 (patch)
tree0633990256880e76cec878cd371938476fa7bd8a /swagger.json
parent040fa7c83b67b0c6541348c4ecd3979c7a80ebc5 (diff)
downloadtrackermap-server-2cc1cb3c7530fdabb750a9e0b5cc26e3e2286185.tar.gz
trackermap-server-2cc1cb3c7530fdabb750a9e0b5cc26e3e2286185.tar.bz2
trackermap-server-2cc1cb3c7530fdabb750a9e0b5cc26e3e2286185.zip
Add better error handling
Diffstat (limited to 'swagger.json')
-rw-r--r--swagger.json16
1 files changed, 14 insertions, 2 deletions
diff --git a/swagger.json b/swagger.json
index 6a8bc91f6..8968db4eb 100644
--- a/swagger.json
+++ b/swagger.json
@@ -1027,6 +1027,10 @@
"303": {
"description": "Redirect to OpenID Connect identity provider",
"content": { }
+ },
+ "404": {
+ "description": "OpenID Connect disabled",
+ "content": { }
}
}
}
@@ -1043,11 +1047,19 @@
],
"responses": {
"303": {
- "description": "Redirect to homepage",
+ "description": "Successful authentication, redirect to homepage",
+ "content": { }
+ },
+ "403": {
+ "description": "Invalid callback or negative response from identity provider",
"content": { }
},
"404": {
- "description": "Invalid callback",
+ "description": "OpenID Connect disabled",
+ "content": { }
+ },
+ "500": {
+ "description": "Other OpenID Connect error",
"content": { }
}
}