Problem/Motivation

The Social API will implement HybridAuth to authenticate with different social networking services. However, we'll need to install the library using Composer Manager for best practice.

Proposed resolution

Make the library available by using composer and propose a way of checking if the library is available in order to use autoposting and user authentication functionality.

Remaining tasks

  • Check if library is available when trying to use autoposting and authentication functionality
  • Review
  • Write documentation
CommentFileSizeAuthor
#8 hybridauth_module.png66.7 KBgvso

Comments

gvso created an issue. See original summary.

dahacouk’s picture

So are you saying not using the https://www.drupal.org/project/hybridauth module?

gvso’s picture

https://www.drupal.org/project/hybridauth only allows user registration to a Drupal site. We need to use the HybridAuth library to also autopost to social networking services. Not mentioning that this module has not been ported to D8 yet.

dahacouk’s picture

Cool.

So, would we be effectively saying use this new Social API D8 HybridAuth module (using Composer Manager) instead of the porting the current one?

If you do mean that then perhaps we could get support from current maintainers/users as this is quite a popular module, yeah?

If that's the direction, then when you are ready, we can make a comment in the following issues to gather support:

But, err, perhaps you are already "on the case"! ;-)

gvso’s picture

I will test the module tomorrow. I only reviewed the code as I didn't have a D7 installation available

Yes, we'll need maintainers/users' help to implement the 'Login with' functionality. We could actually rebuilt the D8 version of the module to work as we expect.

  • gvso committed 2b8330a on 8.x-1.x
    Issue #2690725: Write composer.json to require HybridAuth
    
gvso’s picture

Issue summary: View changes

HybridAuth library is now being downloaded with composer.

How to test?:

  1. Download and enable Composer Manager
  2. On the command line, go to modules/composer_manager/scripts
  3. Execute the init.php script using php init.php
  4. You should get a message stating: Composer Manager has been successfully initialized.
  5. Go to the drupal root directory and run composer drupal-update

There must be a folder called hybridauth in ./vendor now.

Note: If you follow the first 3 steps and then download social_api with drush, it will automatically download HybridAuth.

gvso’s picture

StatusFileSize
new66.7 KB

This is a screenshot of https://www.drupal.org/project/hybridauth in D7. I like the configuration options, but instead of having a long list, I would prefer that there will be different small modules to login with a specific social networking service.

Thus, we'll have a module for login with Facebook, and other to login with Twitter, etc.

HybridAuth module

gvso’s picture

Status: Active » Closed (works as designed)

As the architecture has been changed, we no longer need to use HybridAuth library as part of the main Social API module.

gvso’s picture

Parent issue: » #2689415: Social API Roadmap