Mais conteúdo relacionado
Semelhante a Drupal social api (20)
Drupal social api
- 3. やりたいこと:DrupalのサイトでSocial Loginを実現したい
• 利用したモジュール
– Social Auth Facebook
- Installing league/oauth2-client (2.4.1): Loading from cache
- Installing drupal/social_api (2.0.0-beta4): Loading from cache
- Installing league/oauth2-facebook (2.0.1): Loading from cache
- Installing drupal/social_auth (2.0.0-beta4): Loading from cache
- Installing drupal/social_auth_facebook (2.0.0-beta3): Loading from cache
– 中身はPHP league(https://thephpleague.com/)
• OAuth 2.0 Client
2
- 4. 検証
• DrupalのプレーンインストールとSocial Auth Facebookモジュールの導
入
cd /home/hagi/drupal
composer create-project drupal-composer/drupal-project:8.x-dev meetup --stability dev --no-interaction
Echo ‘create database meetup; grant all on meetup.* to ulsl@localhost;’ | sudo mysql
cd meetup
composer update --with-dependencies
sudo chown –R www-data.www-data ./
sudo –uwww-data vendor/drush/drush/drush si --account-name=“ulsl-admin” --account-pass=“ulslab” --account-mail=contact@ulslab.com
--site-mail=“contact@ulslab.com” --site-name=meetup --locale=ja --db-url=mysql://ulsl:内緒@localhost/meetup --db-prefix="dev-"
sudo ln -s /home/hagi/drupal/meetup/web /var/www/html/meetup
sudo –uwww-data composer require 'drupal/social_api:^2.0' 'drupal/social_auth:^2.0' 'drupal/social_auth_facebook:^2.0’
sudo –uwww-data vendor/drush/drush/drush updb
• Let’s EncryptでSSLの設定
– 委細省略
3