The old version of lcobucci/jwt somehow depends on an outdated version of PHP, which blocks using MW on PHP 8.3/8.4:
#12 6.929 Problem 1 #12 6.929 - Root composer.json requires lcobucci/jwt 4.1.5 -> satisfiable by lcobucci/jwt[4.1.5]. #12 6.929 - lcobucci/clock 2.3.0 requires php ~8.1.0 || ~8.2.0 -> your php version (8.4.13) does not satisfy that requirement. #12 6.929 - lcobucci/jwt 4.1.5 requires lcobucci/clock ^2.0 -> satisfiable by lcobucci/clock[2.3.0].
Although T261462 is stalled, it seems that wikimedia/oauth2-server has some new commits that are not included in the OAuth extension. Is it possible to include those commits and unpin lcobucci/jwt?