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
.
Can't thank you enough for this gist. It's pretty much translated perfectly to the latest version of HWI OAuth. The bundle is great but stuff like this isn't super clear until you have a dig in. Much appreciated 🙏