akuma / social-bundle
Akuma Social Bundle
Installs: 24
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4
- akuma/core-bundle: dev-master
- friendsofsymfony/user-bundle: ~1.3
- league/oauth2-client: 0.8.*
- symfony/symfony: 2.6.*
This package is auto-updated.
Last update: 2024-11-05 23:54:44 UTC
README
Facebook:
- https://developers.facebook.com/quickstarts/?platform=web
- App Settings Set Email
- App review-status Go Live
Google:
- https://console.developers.google.com/project
- Configure "permissions" if needed
- Enabled "Google+ API"
- Create new credentials "Web Application" type
Microsoft:
- https://account.live.com/developers/applications/create?tou=1
- Configure "API Settings" set to "Yes" => "Mobile or desktop client app"
- Configure redirect urls by default application generates urls like http(s)://YOUR_DOMAIN/[SOCIAL_NAME]/connect, example : http://demo.akuma.in/microsoft/connect
#parameters.yml.dist: parameters: #Akuma Social Params #Facebook facebook_id: '' facebook_secret: '' facebook_scopes: [email, public_profile] #Google google_id: '' google_secret: '' google_scopes: [email]
#config.yml: akuma_social: facebook: app_id: %facebook_id% app_secret: %facebook_secret% app_scopes: %facebook_scopes% google: app_id: %google_id% app_secret: %google_secret% app_scopes: %google_scopes%
#routing.yml: akuma_social: resource: "@AkumaSocialBundle/Resources/config/routing-all.yml" prefix: /
#security.yml: security: encoders: FOS\UserBundle\Model\UserInterface: plaintext providers: chainprovider: chain: providers: - fos_userbundle - akuma_social_facebook - akuma_social_google fos_userbundle: id: fos_user.user_provider.username akuma_social_facebook: id: fos_user.user_provider.username akuma_social_google: id: fos_user.user_provider.username firewalls: main: pattern: ^/ akuma_social_facebook: provider: akuma_social_facebook login_path: /user/login #TODO Add route name support check_path: /facebook/connect default_target_path: / akuma_social_google: provider: akuma_social_google login_path: /user/login #TODO Add route name support check_path: /google/connect default_target_path: / form_login: provider: fos_userbundle csrf_provider: form.csrf_provider login_path: /user/login use_forward: false check_path: /user/login_check failure_path: null logout: path: /user/logout anonymous: ~ remember_me: key: "%secret%" lifetime: 4147200 path: / domain: ~ dev: pattern: ^/(_(profiler|wdt|error)|css|images|js)/ security: false default: anonymous: ~ access_control: - { path: ^/user/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } # - { path: ^/secured, role: ROLE_USER }