View | Details | Raw Unified | Return to bug 22132
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl (+13 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
4
    $dbh->do(q{
5
        INSERT IGNORE INTO systempreferences
6
            (variable, value, options, explanation, type )
7
        VALUES
8
            ('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo')
9
    });
10
11
    SetVersion( $DBversion );
12
    print "Upgrade to $DBversion done (Bug 22132 - Add Basic authentication)\n";
13
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 487-492 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
487
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
487
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
488
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
488
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
489
('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'),
489
('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'),
490
('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo'),
490
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
491
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
491
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
492
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
492
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
493
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-1 / +6 lines)
Lines 1-5 Link Here
1
Web services:
1
Web services:
2
    REST API:
2
    REST API:
3
        -
4
            - pref: RESTBasicAuth
5
              choices:
6
                  yes: Enable
7
                  no: "Disable"
8
            - '<a href="https://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA" target="_blank">Basic authentication</a> for the REST API.'
3
        -
9
        -
4
            - "Set the default number of results returned by the REST API endpoints to"
10
            - "Set the default number of results returned by the REST API endpoints to"
5
            - pref: "RESTdefaultPageSize"
11
            - pref: "RESTdefaultPageSize"
6
- 

Return to bug 22132