drupal shibboleth authentication
play

Drupal Shibboleth Authentication Ray Saray Ali Karim Andrea - PowerPoint PPT Presentation

Drupal Shibboleth Authentication Ray Saray Ali Karim Andrea Kapitan Server Tools AWS Docker Shibboleth Service Resources AWS Elastic Beanstalk - for deploying and scaling applications


  1. Drupal Shibboleth Authentication � Ray Saray � Ali Karim � Andrea Kapitan �

  2. � Server Tools � AWS � Docker � Shibboleth �

  3. Service Resources � • AWS � • Elastic Beanstalk - for deploying and scaling applications � • Elastic File System (EFS) - store user files and mount to Elastic Beanstalk EC2 instance which maps to Docker � • Amazon Aurora - a low cost, high performance, scalable database � • Github and Docker repositories [Dockerhub.com] � • Shibboleth Service Provider �

  4. Prerequisites � • Github Repository � • Dockerhub Repository � • Elastic File System (EFS) instance � • Application database � • Registered Shibboleth Service Provider � • SSL Certificate for the site �

  5. Workflow � • Check latest code to Github � • Create Docker image � • Push Docker image to Dockerhub � • Deploy using Elastic Beanstalk CLI �

  6. Docker � • docker build --no-cache=true -t vptldev/ drupalshib . � • Builds a Docker image containing: OS, Drupal, Shibboleth certificate and configuration files, etc… � • docker push vptldev/drupalshib �

  7. AWS Elastic Beanstalk Configuration � • Dockerrun.aws.json � • .ebextensions folder � • eb deploy �

  8. Shibboleth Module Installation � • Add shib_auth module to Drupal. Add using drush in the Docker container, and check the new version into Github. � • ssh to EC2 � • sudo su � • docker ps to get container id � • docker –i –t exec <CONTAINERID> bash � • cd /var/www/html � • drush en shib_auth � • drush up shib_auth � • Push your new files to github using standard git command �

  9. � Shibboleth Service Provider Configuration P1 � • Add Shibboleth to Apache config � • Add RewiteCond to to server configuration: � RewriteCond %{REQUEST_URI} !^/ Shibboleth.sso($|/) � • Generate certificate for the Service Provider �

  10. � � Shibboleth Service Provider Configuration P2 � Add attributes to attribute-map.xml file �

  11. � Shibboleth Service Provider Configuration P3 � Add Shibboleth SP db connection details to odbc.ini file �

  12. � Shibboleth Service Provider Configuration P4 � • Configure Shibboleth Service Provider shibboleth/shibboleth2.xml � • Application defaults � • ODBC database � • Session settings �

  13. Shibboleth Service Provider Configuration P5 � • Add attributes to mapping files � • Register Shibboleth Service Provider with the Identity Provider (https://spdb.stanford.edu) �

  14. Shibboleth Drupal Module Settings P1 � Shibboleth attribute settings � /admin/config/people/shib_auth �

  15. Shibboleth Drupal Module Settings P2 � • Shibboleth attributes �

  16. Troubleshooting � • We added Xdebug functionality to our Docker to allow debugging with NetBeans � To check if you get attributes from IDP: � • tail –f /var/log/shibboleth/transaction.log � • tail -f /var/log/shibboleth/shibd.log �

  17. Node Access Configuration � Add a role for student and only give that role access to the course page, and main course page content types �

  18. Questions? �

  19. Thank you � https://github.com/rsaray/DrupalShibDocker.git � Ray Saray (rsaray@stanford.edu) � Ali Karim (alikarim@stanford.edu) � Andrea Kapitan (akapitan@stanford.edu) �

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend