[BUGFIX] Fix TER REST API
The package lcobucci/jwt
has been raised from version 3.x to
version 4.x with the update to TYPO3 11.5. Version 4.x has however
many breaking changes, which resulted in, that the whole JWT
creation and validation process did not work any more.
See https://lcobucci-jwt.readthedocs.io/en/latest/upgrading/#v3x-to-v4x for details.
This change adapts all required changes, so JWT creation and validation is possible again.
The patch additionally fixes a bug in Typo3VersionService
, where
getNewestVersionForDependencyCheck
did not respect the current
result from https://get.typo3.org/v1/api/major/
The following has been tested:
- Create access token in TER frontend
- Refresh access token in TER frontend
- Revoke access token in TER frontend
- Create access token using tailor
- Refresh access token in TER tailor
- Revoke access token in TER tailor
- REST API access using basic auth
- REST API access using bearer auth
Closes #577 (closed) Closes #569 (closed)