diff --git a/Classes/Service/SocialAuthenticationService.php b/Classes/Service/SocialAuthenticationService.php
index caa065c..48d0dec 100755
--- a/Classes/Service/SocialAuthenticationService.php
+++ b/Classes/Service/SocialAuthenticationService.php
@@ -73,7 +73,8 @@ class SocialAuthenticationService extends AbstractAuthenticationService
'facebook' => 1,
'google' => 2,
'twitter' => 3,
- 'linkedin' => 4
+ 'linkedin' => 4,
+ 'instagram' => 5,
];
/**
diff --git a/Classes/Utility/AuthUtility.php b/Classes/Utility/AuthUtility.php
index ff999ca..4c2464a 100755
--- a/Classes/Utility/AuthUtility.php
+++ b/Classes/Utility/AuthUtility.php
@@ -4,6 +4,7 @@
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\HttpUtility;
+use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
/***************************************************************
*
@@ -96,6 +97,18 @@ public function initializeObject()
'id' => $this->extConfig['providers']['linkedin']['keys']['key'],
'secret' => $this->extConfig['providers']['linkedin']['keys']['secret']
)
+ ),
+ 'Instagram' => array(
+ 'enabled' => $this->extConfig['providers']['instagram']['enabled'],
+ 'keys' => array(
+ 'id' => $this->extConfig['providers']['instagram']['keys']['id'],
+ 'secret' => $this->extConfig['providers']['instagram']['keys']['secret']
+ ),
+ 'scope' => $this->extConfig['providers']['instagram']['scope'],
+ 'wrapper' => array(
+ 'class' => 'Hybrid_Providers_Instagram',
+ 'path' => ExtensionManagementUtility::extPath('social_auth').'Resources/Private/Librairies/hybridauth/hybridauth/additional-providers/hybridauth-instagram/Providers/Instagram.php'
+ )
)
),
'debug_mode' => false,
diff --git a/Configuration/TCA/Overrides/fe_users.php b/Configuration/TCA/Overrides/fe_users.php
index 2363575..93490b2 100755
--- a/Configuration/TCA/Overrides/fe_users.php
+++ b/Configuration/TCA/Overrides/fe_users.php
@@ -3,7 +3,6 @@
die('Access denied.');
}
-
/**
* Add extra fields to the fe_users
*/
@@ -19,7 +18,8 @@
array('Facebook', 1),
array('Google', 2),
array('Twitter', 3),
- array('LinkedIn', 4)
+ array('LinkedIn', 4),
+ array('Instagram', 5),
),
'size' => 1,
'maxitems' => 1,
diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript
index d4e99aa..edf6b39 100755
--- a/Configuration/TypoScript/setup.typoscript
+++ b/Configuration/TypoScript/setup.typoscript
@@ -86,6 +86,11 @@ plugin.tx_felogin_pi1{
typolink.ATagParams = class="btn btn-block btn-social btn-linkedin" rel="nofollow"
stdWrap.dataWrap = {LLL:EXT:social_auth/Resources/Private/Language/locallang.xlf:linkedin.label}
}
+ instagram < .facebook
+ instagram{
+ typolink.ATagParams = class="btn btn-block btn-social btn-instagram" rel="nofollow"
+ stdWrap.dataWrap = {LLL:EXT:social_auth/Resources/Private/Language/locallang.xlf:instagram.label}
+ }
}
}
diff --git a/Documentation/UsersManual/Index.rst b/Documentation/UsersManual/Index.rst
index 2354240..6dec622 100644
--- a/Documentation/UsersManual/Index.rst
+++ b/Documentation/UsersManual/Index.rst
@@ -12,7 +12,7 @@ Users manual
============
- Install the extension using the Extension Manager
-- Register new app on Facebook, Twitter, Google or LinkedIn and follow the instructions. Some examples are detailed on Hybrid auth user guide [http://hybridauth.sourceforge.net/userguide.html]
+- Register new app on Facebook, Twitter, Google, LinkedIn or Instagram and follow the instructions. Some examples are detailed on Hybrid auth user guide [http://hybridauth.sourceforge.net/userguide.html]
- Configure via Extension Manager and add key + appId for each social provider & 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
- Add the static TS (typoscript) to your typoscript template
diff --git a/README.md b/README.md
index 511af78..0a1dc2b 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Social Auth service for TYPO3 with Hybrid Auth API (Facebook, Twitter, Google +
## Installation instructions
* Install the extension using the Extension Manager
-* Register new app on Facebook, Twitter, Google or LinkedIn and follow the instructions. Some examples are detailed on Hybrid auth user guide [http://hybridauth.sourceforge.net/userguide.html]
+* Register new app on Facebook, Twitter, Google, LinkedIn or Instagram and follow the instructions. Some examples are detailed on Hybrid auth user guide [http://hybridauth.sourceforge.net/userguide.html]
* Configure via Extension Manager and add key + appId for each social provider & 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)
diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf
index 97561a0..ae17a36 100644
--- a/Resources/Private/Language/locallang.xlf
+++ b/Resources/Private/Language/locallang.xlf
@@ -17,6 +17,9 @@
+
+
+