Download the PHP package open20/amos-social-auth without Composer
On this page you can find all versions of the php package open20/amos-social-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package amos-social-auth
Amos Social Auth
Social Auth For Amos
Installation
-
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your
composer.jsonfile. -
Add module to your main config in common:
- Apply migrations
Configuration
-
Sample configuration
see configuration doc: https://hybridauth.github.io/hybridauth/userguide/Configuration.html
-
Action enable/disable
enableLoginTo alow Social LoginenableLinkTo Enable Social Account Linking (my-profile 'settings' tab)enableRegisterTo Enable Registration with SocialenableServicesTo list enabled services related to social accounts. By default the array containscalendarandcontacts
The provider linking functionality is managed in 'My Profile', amos-admin. To enable social links check in admin configuraion the visibility for box social-accounts and for the the providers buttons.
Providers
Providers configuration doc: https://hybridauth.github.io/hybridauth/userguide.html section 'Popular Providers'
-
Google
(guide from https://hybridauth.github.io/hybridauth/userguide/IDProvider_info_Google.html)- Go to the Google Developers Console https://console.developers.google.com/projectselector/apis/library?supportedpurview=project.
- From the project drop-down, select a project, or create a new one.
- Enable the Google API services:
In the list of Google APIs, search for the Google+ API service.
Select Google+ API from the results list.
Press the Enable API button.
The same for People API and Calendar API
- Enable API in Google console
for account and contacts: People API, Google+ API
for calendar events: Google Calendar API
- Enable API in Google console
- When the process completes, enabled APIs appears in the list of enabled APIs. To access, select API Manager on the left sidebar menu, then select the Enabled APIs tab.
- In the sidebar under "API Manager", select Credentials. In the Credentials tab, select the New credentials drop-down list, and choose OAuth client ID.
- From the Application type list, choose the Web application.
-
Enter a name and provide this URLs as Authorized redirect URIs: https://YourPlatformUrl/socialauth/social-auth/sign-in?action=done&provider=google
https://YourPlatformUrl/socialauth/social-auth/sign-up?action=done&provider=google
https://YourPlatformUrl/admin/user-profile/enable-google-service- Once you have registered, copy and past the created application credentials (Client ID and Secret) into the HybridAuth config file.
All versions of amos-social-auth with dependencies
open20/amos-admin Version ^2.7.4
open20/amos-core Version ^1.40.0
open20/amos-attachments Version ^1.0
hybridauth/hybridauth Version ^3.1.1
firebase/php-jwt Version ^6.0.0
phpseclib/phpseclib Version ^2.0.29
google/apiclient Version ^2.0
yiisoft/yii2-authclient Version ^2.1.0
conquer/oauth2 Version *