Univention Bugzilla – Bug 51066
Modify update_openapi_client script to work with auth required OpenAPI schema endpoint
Last modified: 2020-04-15 15:12:10 CEST
With Bug #50732 the openapi.json is now potentially restricted to authenticated users. We have to extend the update_openapi_client script to accept credentials for fetching the schema file.
The script now accepts 2 new options --username and --password which are used for BasicAuth in the request if both are present. This leads to the following behavior: json is protected and no credentials given: 401 error message json is protected and wrong credentials given: 401 error message json is protected and correct credentials given: 200, script runs json is not protected and no credentials given: 200, script runs json is not protected and wrong credentials given: 401 error message json is not protected and correct credentials given: 200, script runs Version 0.4.0 is released at https://test.pypi.org/project/udm-rest-client/ Please check and REOPEN for release on productive index.
On a system where the UDM API is not updated yet (Before Bug #50732) I observed the same behavior as in json is not protected and *
QA Please update version according to changes in history (0.4.0 (2020-03-19) -> 0.4.0 (2020-04-06)) on https://test.pypi.org/project/udm-rest-client/ - code-review -> code looks @ok - travis check (build) @ok - doc was build on rtd (changelog) @ok - ob das neue paket zu test-pypi @ok und - documentation in readme @ok json is protected and no credentials given: 401 error message @ok json is protected and wrong credentials given: 401 error message @ok json is protected and correct credentials given: 200, script runs @ok json is not protected and no credentials given: 200, script runs @ok json is not protected and wrong credentials given: 401 error message @ok json is not protected and correct credentials given: 200, script runs @ok On a system where the UDM API is not updated yet (Before Bug #50732) I observed the same behavior as in json is not protected and * @ok (4.4.3 errata-427)
Version 0.4.0 published on PyPi: https://pypi.org/project/udm-rest-client/0.4.0/
QA Version 0.4.0 published on PyPi @ok
Released with App Update - UCS@school Kelvin REST API 1.1.0