PHPackages                             kalypso63/social\_auth - 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. kalypso63/social\_auth

ActiveTypo3-cms-extension[Authentication &amp; Authorization](/categories/authentication)

kalypso63/social\_auth
======================

Authentication via social auth (Facebook, Twitter, Google +, LinkedIn &amp; Instagram)

1.2.6(7y ago)67.9k3[3 issues](https://github.com/kalypso63/social_auth/issues)GPL-2.0+PHP

Since Jul 4Pushed 7y ago2 watchersCompare

[ Source](https://github.com/kalypso63/social_auth)[ Packagist](https://packagist.org/packages/kalypso63/social_auth)[ Docs](http://typo3.org)[ RSS](/packages/kalypso63-social-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (0)

social\_auth
============

[](#social_auth)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.me/vancloostermickael)

Social Auth service for TYPO3 with Hybrid Auth API (Facebook, Twitter, Google + &amp; LinkedIn)

Installation instructions
-------------------------

[](#installation-instructions)

- Install the extension using the Extension Manager
- Register new app on Facebook, Twitter, Google, LinkedIn or Instagram and follow the instructions. Some examples are detailed on Hybrid auth user guide \[\]
- Configure via Extension Manager and add key + appId for each social provider &amp; set options for fe\_users creation (users pid and default usergroup id are required !)
- Storage User Pid should be different from classic fe\_users PID to prevent unique username
- New for 8.7 instance, set file storage uid and path for fe\_users.image (FAL is used now for image field)
- Add excluded fields on update after each login. By default all fields (name,first\_name,last\_name,telephone,address,city,zip,country) are overwritten.
- Add the static TS (typoscript) to your typoscript template

Frontend plugin integration
---------------------------

[](#frontend-plugin-integration)

Two ways exist to integrate social auth on FE

- Add Social auth plugin on your page. It create a link for each enabled providers
- Create links on your fluid template like this (add namespace viewhelper at first):

`{namespace socialauth=MV\SocialAuth\ViewHelpers}`

`Facebook`

You can change redirect URL with a custom page (like profil page) using {f:uri.page()} viewhelper instead of {socialauth:currentUri()}

Bootstrap Social CSS
--------------------

[](#bootstrap-social-css)

Bootstrap social css is used by default on every views. You can disable it via Constant editor

Integration with Felogin
------------------------

[](#integration-with-felogin)

If felogin is used, you can add marker ###SOCIAL\_AUTH### to your custom felogin template. Typoscript for Felogin is loaded on main TS

To custom render of generated links. Modify Typoscript like this :

```
plugin.tx_felogin_pi1{
    socialauth.wrap = |
    socialauth_provider{
        facebook = TEXT
        facebook{
            typolink{
                #Custom class or title
                #ATagParams =
            }
            wrap = |
            stdWrap.dataWrap = {LLL:EXT:social_auth/Resources/Private/Language/locallang.xlf:facebook.label}
        }
        twitter < .facebook
        twitter{
            stdWrap.dataWrap = {LLL:EXT:social_auth/Resources/Private/Language/locallang.xlf:twitter.label}
        }
        google < .facebook
        google{
            stdWrap.dataWrap = {LLL:EXT:social_auth/Resources/Private/Language/locallang.xlf:google.label}
        }
    }
}

```

Signal Slots for developer
--------------------------

[](#signal-slots-for-developer)

3 slots are available to extend service authentification

- beforeCreateOrUpdateUser
- getUser
- authUser

\###Example of slot integration (This example add birthdate and extbase\_type to general fields with beforeCreateOrUpdateUser signal)

YOUR\_EXTENSION/ext\_localconf.php

```
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('social_auth')) {
    $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
    $signalSlotDispatcher->connect(
        'MV\\SocialAuth\\Service\\SocialAuthenticationService',
        'beforeCreateOrUpdateUser',
        'Vendor\\ExtensionKey\\Slots\\UserAuthentificationSlot',
        'beforeCreateOrUpdateUser'
    );
}

```

YOUR\_EXTENSION/Classes/Slots/UserAuthentificationSlot.php

```
