PHPackages                             liip/oneall-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. liip/oneall-bundle

AbandonedArchivedSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

liip/oneall-bundle
==================

Symfony2 Bundle to integrate oneall.com

1.0.0(12y ago)91826[4 issues](https://github.com/liip/LiipOneallBundle/issues)MITPHPPHP &gt;=5.3.3

Since Jul 25Pushed 8y ago58 watchersCompare

[ Source](https://github.com/liip/LiipOneallBundle)[ Packagist](https://packagist.org/packages/liip/oneall-bundle)[ Docs](http://liip.ch)[ RSS](/packages/liip-oneall-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

UNMAINTAINED
============

[](#unmaintained)

This bundle is no longer maintained. Feel free to fork it if needed.

Introduction
============

[](#introduction)

**This is still a work in progress!**

This Bundle enables integration of the Oneall.com into Symfony2. The code is based on

Please also refer to the Oneall documentation:

Furthermore please also refer to the official documentation on security, especially for details on the configuration:

[![Build Status](https://camo.githubusercontent.com/d77ae8574579c241c87a88eec856f244222c2abb0eced402ddf4e08ab120258f/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c6969702f4c6969704f6e65616c6c42756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/liip/LiipOneallBundle)

Prerequisites
=============

[](#prerequisites)

This version requires Symfony 2.1

Installation
============

[](#installation)

1. Add the following lines in your composer.json:

```
{
  "require": {
      "liip/oneall-bundle": "dev-master"
  }
}

```

2. Run the composer to download the bundle

```
$ php composer.phar require liip/oneall-bundle
```

3. Add this bundle to your application's kernel:

```
        // app/ApplicationKernel.php
        public function registerBundles()
        {
            return array(
                // ...
                new Liip\OneallBundle\LiipOneallBundle(),
                // ...
            );
        }
```

4. Add the following routes to your application and point them at actual controller actions

```
        #application/config/routing.yml
        liip_oneall_check:
            pattern:  /login_check
        liip_oneall_logout:
            pattern:  /logout
```

```
        #application/config/routing.xml

```

5. Configure the `oneall` service in your config (most of the information can be copied out of the oneall.com control panel):

```
        # application/config/config.yml
        liip_oneall:
            site_subdomain: my_subdomain
            site_public_key: my_not_so_secret_key
            site_private_key: my_s3cr3t_key
            social_links: [linkedin, facebook, github, twitter]
            default_firewall_name: main
            callback_path: /foo
```

```
        # application/config/config.xml

              linkedin
              facebook
              github
              twitter

```

```
 > Note you only need to specify either ``default_firewall_name`` or ``callback_path``.
 The ``callback_path`` can either be a relative path or a route name.

```

6. Add this configuration if you want to use the `security component`:

```
        # application/config/config.yml
        security:
            firewalls:
                public:
                    # since anonymous is allowed users will not be forced to login
                    pattern:   ^/.*
                    liip_oneall:
                        check_path: liip_oneall_check
                    anonymous: true
                    logout:
                        handlers: ["liip_oneall.logout_handler"]

            access_control:
                - { path: ^/secured/.*, role: [IS_AUTHENTICATED_FULLY] } # This is the route secured with liip_oneall
                - { path: ^/.*, role: [IS_AUTHENTICATED_ANONYMOUSLY] }

```

```
 You have to add `/secured/` in your routing for this to work. An example would be...

```

```
            liip_oneall_secured:
                pattern: /secured/
                defaults: { _controller: AcmeDemoBundle:Welcome:index }

```

7. Optionally define a custom user provider class and use it as the provider or define path for login. There is a default implementation for FOSUserBundle integration

```
        # application/config/config.yml
        security:
            providers:
                # choose the provider name freely
                my_liip_oneall_provider:
                    id: liip_oneall.user_provider   # see "Example Custom User Provider using the FOS\UserBundle" chapter further down

            firewalls:
                public:
                    pattern:   ^/.*
                    liip_oneall:
                        login_path: /login
                        check_path: liip_oneall_check
                        default_target_path: /
                        provider: my_liip_oneall_provider
                    anonymous: true
                    logout:
                        handlers: ["liip_oneall.logout_handler"]

```

8. Optionally use access control to secure specific URLs

```
        # application/config/config.yml
        security:
            # ...

            access_control:
                - { path: ^/oneall/,           role: [ROLE_ONEALL] }
                - { path: ^/.*,                role: [IS_AUTHENTICATED_ANONYMOUSLY] }

```

```
The role `ROLE_ONEALL` has to be added in your User class (see Acme\MyBundle\Entity\User::setFBData() below).
> Note that the order of access control rules matters!

```

Setting up the JavaScript SDK
-----------------------------

[](#setting-up-the-javascript-sdk)

A templating Twig extension is included for loading the Oneall JavaScript SDK and initializing it with parameters from your service container. To setup the Oneall JavaScript environment, add the following to your layout just after the opening `body` tag:

```

{{ oneall_initialize() }}
```

Include the login button in your templates
------------------------------------------

[](#include-the-login-button-in-your-templates)

Just add the following code in one of your templates:

```

{{ oneall_login_button({'login_container_id': 'some_tag_id'}) }}
```

> Note that `login_container_id` is optional and defaults to `oa_social_login_container`.

Include the logut url in your templates
---------------------------------------

[](#include-the-logut-url-in-your-templates)

TODO

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4680d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20873?v=4)[Luke Smith](/maintainers/lsmith)[@lsmith](https://github.com/lsmith)

---

Top Contributors

[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (23 commits)")

---

Tags

bundleoneallphpsymfonysymfony-bundletwittersocial mediaoneall

### Embed Badge

![Health badge](/badges/liip-oneall-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/liip-oneall-bundle/health.svg)](https://phpackages.com/packages/liip-oneall-bundle)
```

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7014.0M62](/packages/scheb-2fa-bundle)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[klapaudius/oauth-server-bundle

Symfony(5.x to 8.x) OAuth Server Bundle

15547.3k2](/packages/klapaudius-oauth-server-bundle)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

63397.4k6](/packages/web-auth-webauthn-symfony-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
