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

(-)a/installer/data/mysql/atomicupdate/bug_20624_disable_oauth.perl (+12 lines)
Line 0 Link Here
1
$DBversion = "XXX";
2
if(CheckVersion($DBversion)) {
3
4
    $dbh->do(q{
5
        INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
6
        VALUES
7
            ('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo');
8
    });
9
10
    print "Upgrade to $DBversion done (Bug 20624 - Disable OAuth2 client credentials grant by default)\n";
11
    SetVersion($DBversion);
12
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 467-472 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
467
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
467
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
468
('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'),
468
('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'),
469
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
469
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
470
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
470
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
471
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
471
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
472
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
472
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
473
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-2 / +7 lines)
Lines 4-10 Web services: Link Here
4
            - "Set the default number of results returned by the REST API endpoints to"
4
            - "Set the default number of results returned by the REST API endpoints to"
5
            - pref: "RESTdefaultPageSize"
5
            - pref: "RESTdefaultPageSize"
6
              class: integer
6
              class: integer
7
            - "per page"
7
            - "per page."
8
        -
9
            - pref: RESTOAuth2ClientCredentials
10
              choices:
11
                  yes: Enable
12
                  no: "Disable"
13
            - "the OAuth2 client credentials grant for the REST API."
8
    OAI-PMH:
14
    OAI-PMH:
9
        -
15
        -
10
            - pref: OAI-PMH
16
            - pref: OAI-PMH
11
- 

Return to bug 20624