symfony-bundle social-bundle
Akuma Social Bundle
akuma/social-bundle
Akuma Social Bundle
- Tuesday, January 16, 2018
- by inri13666
- Repository
- 0 Watchers
- 0 Stars
- 24 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
AkumaSocialBundle
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%
```yml
#routing.yml:
akuma_social:
resource: "@AkumaSocialBundle/Resources/config/routing-all.yml"
prefix: /
```yml
#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 }
dev-master
9999999-dev
Akuma Social Bundle
Sources
Download
MIT
WTFPL
The Requires
user management
1.0.1
1.0.1.0
Akuma Social Bundle
Sources
Download
MIT
The Requires
user management