Bug 22132: Add RESTBasicAuth syspref
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
dba6f6de20
commit
3ffed7d55a
|
|
@ -0,0 +1,13 @@
|
|||
$DBversion = 'XXX';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences
|
||||
(variable, value, options, explanation, type )
|
||||
VALUES
|
||||
('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo')
|
||||
});
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 22132 - Add Basic authentication)\n";
|
||||
}
|
||||
|
|
@ -488,6 +488,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
|
||||
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
|
||||
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
|
||||
('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo'),
|
||||
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
|
||||
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
|
||||
('RESTPublicAPI','1',NULL,'If enabled, the REST API will expose the /public endpoints.','YesNo'),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
Web services:
|
||||
REST API:
|
||||
-
|
||||
- pref: RESTBasicAuth
|
||||
choices:
|
||||
yes: Enable
|
||||
no: "Disable"
|
||||
- '<a href="https://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA" target="_blank">Basic authentication</a> for the REST API.'
|
||||
-
|
||||
- "Set the default number of results returned by the REST API endpoints to"
|
||||
- pref: "RESTdefaultPageSize"
|
||||
|
|
|
|||
Loading…
Reference in New Issue