Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/roles/htdocs/files/BackupDownload/download.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@


// if there's a SAML config file, we need to authenticate with SAML, like, now.
if ( is_file( $m_deploy.'/SAMLConfig.php' ) ) {
require_once $m_htdocs.'/NonMediaWikiSimpleSamlAuth.php';
}
else {
{% if saml_public is defined %}
require_once __DIR__ . '/NonMediaWikiSimpleSamlAuth.php';
{% else %}
header('HTTP/1.0 403 Forbidden');
echo "Backup downloading is not permitted without Single Sign On";
}
{% endif %}

$as = new SimpleSAML_Auth_Simple('default-sp');
$as->requireAuth();
Expand Down
9 changes: 4 additions & 5 deletions src/roles/htdocs/files/BackupDownload/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
require_once '/opt/.deploy-meza/config.php';

// if there's a SAML config file, we need to authenticate with SAML, like, now.
if ( is_file( $m_deploy.'/SAMLConfig.php' ) ) {
require_once $m_htdocs.'/NonMediaWikiSimpleSamlAuth.php';
}
else {
{% if saml_public is defined %}
require_once __DIR__ . '/NonMediaWikiSimpleSamlAuth.php';
{% else %}
header('HTTP/1.0 403 Forbidden');
echo "Backup downloading is not permitted without Single Sign On";
}
{% endif %}

$as = new SimpleSAML_Auth_Simple( 'default-sp' );
$as->requireAuth();
Expand Down
6 changes: 3 additions & 3 deletions src/roles/htdocs/templates/index.php.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

// if there's a SAML config file, we need to authenticate with SAML, like, now.
if ( is_file( '/opt/.deploy-meza/SAMLConfig.php' ) ) {
require_once __DIR__ . '/NonMediaWikiSimpleSamlAuth.php';
}
{% if saml_public is defined %}
require_once __DIR__ . '/NonMediaWikiSimpleSamlAuth.php';
{% endif %}

require_once "WikiBlender/index.php";