lp-digital/hauth-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Social sign for BackBee v1.* instance

Installs: 1 969

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:backbee-bundle

v0.1.4 2017-06-16 09:11 UTC

This package is not auto-updated.

Last update: 2021-04-28 08:46:19 UTC


README

Build Status Code Climate Test Coverage

hauth-bundle enables to easily implement social signin on BackBee instances throw hybridauth/hydridauth library.

Currently, only the firewall rest_api_area is supported (ie BackBee authentication to the toolbar).

Installation

Edit the file composer.json of your BackBee project.

Add the new dependency to the bundle in the require section:

# composer.json
...
    "require": {
        ...
        "lp-digital/hauth-bundle": "~0.1"
    },
...

Save and close the file.

Run a composer update on your project.

Activation

Edit the file repository/Config/bundles.yml of your BackBee project.

Add the following line at the end of the file:

# bundles configuration - repository/Config/bundles.yml
...
hauth: LpDigital\Bundle\HAuthBundle\HAuth

Save and close the file.

Then launch the command to update database:

./backbee bundle:update hauth --force

Depending on your configuration, cache may need to be clear.

Configuration

Create and edit the configuration file repository/Config/bundle/hauth/config.yml in your BackBee project.

The configuration mainly follow the configuration syntax of hybridauth, see http://hybridauth.sourceforge.net/userguide.html.

hybridauth:
    store_user_profile: true       # Is the social user's profile will be stored in db?        
    firewalls: ['rest_api_area']   # An array of BackBee firewalls for which hauth-bundle will propose hydrid authentication
    base_url: /hauth.html          # The entry point of the hybrid authentication
    debug_mode: false
    providers:
        {Provider name}:           # Provider name, see hybridauth documentation for supported list
            enabled: {true|false}  # Is the provider enabled?
            fa-icon:               # Optional, the Font Awesome icon class name for the provider
            scope:                 # The permissions requested to the provider
            keys:
                id:                # your provider application key
                secret:            # your provider secret token
        ...

This project is supported by Lp digital

Lead Developer : @crouillon

Released under the GPL3 License