Bugzilla – Attachment 121462 Details for
Bug 28412
Add supported authentication methods documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28412: Add information about supported authentication methods
Bug-28412-Add-information-about-supported-authenti.patch (text/plain), 1.82 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-05-27 20:06:09 UTC
(
hide
)
Description:
Bug 28412: Add information about supported authentication methods
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-05-27 20:06:09 UTC
Size:
1.82 KB
patch
obsolete
>From 357c394d126c09f681331ed90bac2bc1956ec5c8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 27 May 2021 17:02:35 -0300 >Subject: [PATCH] Bug 28412: Add information about supported authentication > methods > >This patch adds an initial text explaining the valid authentication >mechanisms Koha has for the API. > >My first approach included information about the controlling sysprefs, >but I decided to remove it, as it is not usual for API consumers to be >presented such detailed internal information which is probably >confusing. We could add a link to the manual, but that's not the point I >think. > >I've added an entry about error messages and how we thougth about them. >It is copied from Docker Engine's API docs. > >This is my 2 cents. >--- > api/v1/swagger/swagger.yaml | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > >diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml >index b73682120b..070841e184 100644 >--- a/api/v1/swagger/swagger.yaml >+++ b/api/v1/swagger/swagger.yaml >@@ -23,6 +23,31 @@ info: > > This API is documented in **OpenAPI format**. > >+ ## Authentication >+ >+ The API supports the following authentication mechanisms >+ >+ * Basic authentication >+ * OAuth2 (client credentials grant) >+ * Cookie-based >+ >+ Both _Basic authentication_ and the _OAuth2_ flow, need to be enabled >+ on the system preferences. >+ >+ ## Errors >+ >+ The API uses standard HTTP status codes to indicate the success or failure >+ of the API call. The body of the response will be JSON in the following format: >+ >+ ``` >+ { >+ "error": "patron not found" >+ } >+ ``` >+ >+ Note: Some routes might offer additional attributes in their error responses but that's >+ subject to change and thus not documented. >+ > ## Special headers > > ### x-koha-library >-- >2.31.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28412
:
121462
|
124581
|
124657