Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:shibboleth:sp_wordpress [2022/07/04 14:44]
adminjp [references]
docpublic:systemes:shibboleth:sp_wordpress [2022/07/04 14:53] (current)
adminjp [apache vhost config]
Line 7: Line 7:
   * https://wordpress.org/plugins/simpleshib/?ref=commonninja   * https://wordpress.org/plugins/simpleshib/?ref=commonninja
   * https://www.pluginforthat.com/plugin/shibboleth/   * https://www.pluginforthat.com/plugin/shibboleth/
 +
 +
 +==== apache vhost config ====
 +
 +apache vhost that serves both mainsitewp and sub-blog farm's blogs, as of blog1.mainsitewp.domain.fr : 
 +
 +<code>
 +<VirtualHost 192.168.12.12:443>
 +        ServerName mainsitewp.domain.fr
 +        ServerAlias *.mainsitewp.domain.fr
 +        DocumentRoot /var/www/wp
 +        ErrorLog logs/wp-error_log
 +        CustomLog logs/ssl_wp-access_log common
 +        LogLevel warn
 +        SSLEngine on
 +        Include conf.d/ssl/star_mainsitewp.domain.fr.conf
 +        #RewriteEngine On
 +        #RewriteCond %{HTTP_HOST} ^mainsitewp\.domain\.fr$ [NC]
 +        #RewriteRule .? https://mainsitewp.domain2.fr%{REQUEST_URI} [R=301,L]
 +        <Location />
 +                ShibRequestSetting applicationId wordpress
 +        </Location>
 +</VirtualHost>
 +</code>
 +
 +==== .htaccess rewrites Shibbolet.sso ====
 +
 +at the DocumentRoot of wordpress vhost, the .htaccess does the job to exclude  ^/Shibboleth.sso location in order for shibds to take care of those queries . 
 +
 +<code>
 +RewriteEngine On
 +RewriteBase /
 +
 +RewriteCond %{REQUEST_URI} ^/Shibboleth.sso($|/) [OR]
 +#RewriteCond %{REQUEST_URI} ^/Shibboleth.sso/SAML2/POST [OR]
 +RewriteCond %{REQUEST_URI} ^/shib(.+)
 +RewriteRule . - [L]
 +
 +RewriteRule ^index\.php$ - [L]
 +RewriteRule ^Shibboleth.sso(.+) - [END]
 +RewriteRule ^Shibboleth.sso/Login$ - [L]
 +RewriteRule ^Shibboleth.sso/Loginimt$ - [L]
 +RewriteRule ^Shibboleth.sso/SAML2/POST$ - [L]
 +RewriteRule ^shib(.+) - [L]
 +
 +# BEGIN Shibboleth
 +AuthType shibboleth
 +Require shibboleth
 +# END Shibboleth
 +</code>
  
 ==== wordpress farm multisite ==== ==== wordpress farm multisite ====
  
-for multisite wordpress, we need to allow shib session cookies to be allowed withing sub-domains blogs .+for multisite wordpress, we need to allow shib session cookies to be allowed withing sub-domains blogs (cf cookieProps= ) .
  
 <code> <code>
docpublic/systemes/shibboleth/sp_wordpress.1656945878.txt.gz ยท Last modified: 2022/07/04 14:44 by adminjp
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0