Hybridauth social login | |
The connection to the website through social networks uses the Hybridauth library it allows the visitor, to quickly register on a site by letting their network provide information about themselves. The principle of operation is simple. When a user chooses a social network, he is sent to the server of the latter. There he is invited to enter his details. When they are validated, he is returned to the Tiki site on which he wanted to connect. |
Configuration steps | |
To achieve this some data must be provided:
Then, go to the Social networks panel -> General tab (tiki-admin.php?page=socialnetworks#content-admin1-1) select one or several site you want your users to be allowed to sign in and apply.
Secondly, go now to the tab Settings, your site choices will be visible in different section. In each section the YourSocialNetwork login allowed checkbox should be checked so you can enable/disable a single access. Under it you will find a button More/Less that toggle specific information you need to provide to allow your users to login using this method.
Enter the required information (check the samples below)
In the Control Panel User Settings tab User Settings you also need to enable "User preferences screen".
First, choose your social network(s). To do this, go to Settings -> Users & Community -> Social networks -> General tab or tiki-admin.php?page=socialnetworks#content_admin1-1 and make your choice(s) then validate.
Secondly, still in "Configure social network integration", go to the Settings tab (tiki-admin.php?page=socialnetworks#content_admin1-2), your choices will be visible in well framed zones above. In each zone check the box YourSocialNetwork login allowed ? by doing that a button leading to your site will be available on the login page but will not be functional.
Thirdly, turn in each area click on the more/less button...
|
Parameters to manage the users and their account or items | |
YourSocialNetwork auto-create user?
|
Note | |
The field YourSocialNetwork user prefix to auto-create is filled with the initial of the network you have chosen. So the username will be the combination of the value in this field and a sequence of numbers that will be assigned to it.
|
Troubleshootings | |
TikiHybrid_construct : this site is not register | |
|
TikiHybrider error : A valid CallBack url is required | |
|
Facebook login "sorry something went wrong" | |
If you get an error message from Facebook like "sorry something went wrong", then most likely Facebook login GraphAPI is semi-dead.
|
Supported providers | |
Latest list:
As of 2022-11-30:
|
Samples | |
Authentication for any Social Network
|
Authentication using Gitlab | |
Once enabled you need to enter values for required fields from YourSocialNetwork. To find and set your Gitlab authentication you will need to create an application and copy the information.
Once validated the Tiki settings for YourSocialNetwork will show 2 URL.
|
Authentication using Facebook login | |
Once enabled you need to enter values for required fields from YourSocialNetwork. First you must have a Facebook developer account, login and go to your app page there : https://developers.facebook.com/apps/ On your app page, Click on the Create app button. Click on the Set up Facebook login radio button and click on Next.
If you enabled he option "YourSocialNetwork Auto-create user email" you need to modify your Facebook app permissions to allows your app to read a person's primary email address. On the Meta For Developer site go to your app -> Use cases -> Authentication and account creation click on "Edit" and add the email permission.
|