Univention Bugzilla – Bug 53542
Migrate plugins to new auth method introduced in Kelvin GAU fix
Last modified: 2021-07-02 14:36:53 CEST
In #53534 the fix for the kelvin GAU was ported to ucsschool-api. These changes need to be reflected in the already existing plugins and documentation. This mostly means: from ucsschool.apis.plugins.auth import oauth2_scheme => from ucsschool.apis.plugins.auth import get_token and _token: str = Depends(oauth2_scheme) => _token: str = Depends(get_token) Overrides in tests must be adapted, too. QA tasks: - review the plugin code - review the pytest code - run the tests - confirm that the gui works with 'get_token' in place