Download the PHP package thelia/thelia-hybrid-auth-module without Composer

On this page you can find all versions of the php package thelia/thelia-hybrid-auth-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package thelia-hybrid-auth-module

Thelia Hybrid Auth

This module allows users to connect and register with social networks such as Facebook, Google, LinkedIn...

Installation

Manually

Composer

Add it in your main thelia composer.json file

Implementation in a website

The first thing to do after the installation is to create an application on a social network (ex: developers.facebook.com) and enable it (view the Usage section for more information).

Login template

Registration template

Here you need to override the "register-hybrid-auth" template in templates/frontOffice/default. For this, use your actual register template and follow these steps :

Account template

Make sure the hookblock "account-additional" and the hook "account.after-javascript-include" are available in your template. You can override default templates in templates/frontOffice/default/modules/TheliaHybridAuth

Usage

First of all, to enable a provider, you need to create an app on the provider website. (for more information, contact the provider)

Then configure your module in modules, TheliaHybridAuth, configuration.

You need to enter the id and secret of your app in your module configuration. Use the edit button to do so.

It is then strongly advised to test the connection before to enable your provider (with the test button). Your website will try to connect you to the provider, you may be redirected to the provider website and have to authenticate.

If the test fail, you likely have typed a wrong id/secret or haven't enabled your website on the provider app configuration.

If it still fails, you may need to authorize an address looking like this : https://your-website/login/hybridauth?provider=the-provider-name in the provider configuration page. ("your-website" and "the-provider-name" are to be replaced by what it refers to, of course).

A default list of providers is available :

But you can add any other provider that are in the following list :

Loop

[providers.list]

Input arguments

Argument Description
enabled A boolean value. If set to true, return only activated providers, if set to false, return only non active providers, if set to *, return all providers.

default : true

example : enabled="*"
customer_id An int value. Allows to get the providers associated with this customer id.
exclude A string containing all the providers you want to exclude from the loop.

example : exclude="Facebook,Twitter,AOL"

Output arguments

Variable Description
$NAME the name of the Provider
$ENABLED boolean value. true if the provider is enabled, false else

All versions of thelia-hybrid-auth-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thelia/thelia-hybrid-auth-module contains the following files

Loading the files please wait ...