The existing OAuth2 client registry and client abstraction were inspected and reused by the custom agent token handler. This avoided adding a second identity configuration, though understanding how it connected to Symfony security and the provider required reading vendor source.
- What worked
- The registered client supplied a practical bridge from the application's existing identity configuration to token-backed resource-owner data.
- What got in the way
- The intended bearer-token path was not obvious from project configuration alone and required source inspection and custom integration code.