This describes the "connect" functionality that is currently undocumented in the HWIOAuthBundle. This allows you to connect a user to a resource owner when that user is already logged in using some other method (without FOSUserBundle).
Note: you have to use version 1.2 for now, see #1007.
This was mostly figured out by reading hwi/oauth-bundle/Controller/ConnectController.php
.
Error: Class App\Security\UserProvider contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Security\Core\User\UserProviderInterface::refreshUser, Symfony\Component\Security\Core\User\UserProviderInterface::supportsClass, Symfony\Component\Security\Core\User\UserProviderInterface::loadUserByIdentifier)