Comment to 'Connecting UNA to external OAuth2 provider'
  • Another possible route to do what I am wanting is to modify another Connect app's code to make it work with my app?

    I just download the code for the Twitter Connect and LinkedIn Connect apps. I haven't coded in PHP for sometime now, but following along, it looks like I might be able to change the code in one of them to just say, `bx_heissoma` instead of `bx_twitter` for instance; then change the code for the DB and connection to make sure that it is pulling in and storing the information correctly.

    I see some variables not referenced elsewhere in the folder, so I am assuming they are required from the core UNA framework? For instance in the Twitter Connect app, the `request.php` file has the following line:

    require_once(BX_DIRECTORY_PATH_INC . 'profiles.inc.php');
    

    and those two files are not located within the downloaded folder. I went into the UNA Docs (which the UNA team has been working so hard to update, and I am very thankful for this), but the module section leads to a GitHub page that isn't so helpful unfortunately.

    If this is the direction I should go, instead of using the UNA Connect as in my original post, can someone direct me to an information that may be helpful as I modify one of these connection apps?

    Thank you all!