Upgrade from 1.x to 2.x

Breaking changes

Library updates

The library league/oauth2-server has been updated to version 9.*.

Resource routes

The configuration and registration of resource routes has changed. Configuration is now done in YAML files. See section "Resource route configuration".

Simplified middleware stack

The middleware stack has been simplified. The middleware stack is now:

  1. ...
  2. r3h6/oauth2-server/initializer
  3. ...
  4. typo3/cms-frontend/authentication
  5. ...
  6. r3h6/oauth2-server/dispatcher
  7. ...

Removed class ExtbaseGuard

Check the attributes on the request object instead.

Deprecations

Configuration in site config.yaml under the key oauth2 is condsidered deprecated. Use site settings.yaml instead under the key oauth2_server.