Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ed64359b
Commit
ed64359b
authored
Oct 31, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Oct 31, 2016
Browse files
Merge "Bug 1631808: auth/saml: add framework for ssphp modules"
parents
76c6c15e
56f05d58
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/saml/config/config.php
View file @
ed64359b
...
...
@@ -32,7 +32,12 @@ foreach ($metadata_files as $file) {
// Fix up session handling config - to match Mahara
$memcache_config
=
array
();
if
(
get_config
(
'memcacheservers'
)
||
extension_loaded
(
'memcache'
))
{
$sessionhandler
=
'memcache'
;
if
(
empty
(
get_config
(
'ssphpsessionhandler'
)))
{
$sessionhandler
=
'memcache'
;
}
else
{
$sessionhandler
=
get_config
(
'ssphpsessionhandler'
);
}
$servers
=
get_config
(
'memcacheservers'
);
if
(
empty
(
$servers
))
{
$servers
=
'localhost'
;
...
...
htdocs/auth/saml/extlib/_autoload.php
View file @
ed64359b
...
...
@@ -39,7 +39,11 @@ spl_autoload_register(
}
array_shift
(
$classpath
);
$module
=
array_shift
(
$classpath
);
$filepath
=
get_config
(
'docroot'
)
.
'auth/saml/extlib/simplesamlphp/modules/$module/lib/'
.
implode
(
'/'
,
$classpath
)
.
'.php'
;
$filepath
=
get_config
(
'docroot'
)
.
'auth/saml/extlib/simplesamlphp/modules/'
.
$module
.
'/lib/'
.
implode
(
'/'
,
$classpath
)
.
'.php'
;
if
(
file_exists
(
$filepath
))
{
require_once
(
$filepath
);
}
$filepath
=
get_config
(
'docroot'
)
.
'auth/saml/extlib/modules/'
.
$module
.
'/lib/'
.
implode
(
'/'
,
$classpath
)
.
'.php'
;
if
(
file_exists
(
$filepath
))
{
require_once
(
$filepath
);
}
...
...
htdocs/auth/saml/extlib/modules/README.Mahara
0 → 100644
View file @
ed64359b
This is where SimpleSAMLphp modules can be directly distributed with Mahara.
Just copy them into this directory and the autoloader will pick them up.
htdocs/lib/config-defaults.php
View file @
ed64359b
...
...
@@ -715,3 +715,10 @@ $cfg->passwordsaltalt1 = 'old salt value';
* The default sources are Mozilla Backpack and openbadgepassport.com
*/
$cfg
->
openbadgedisplayer_source
=
'{"backpack":"https://backpack.openbadges.org/","passport":"https://openbadgepassport.com/"}'
;
/**
* @global string $cfg->ssphpsessionhandler
* An alternative session handler for SimpleSAMLphp if you do not wish to use memcache.
* Specify the name of the session handler.
*/
// $cfg->ssphpsessionhandler = 'memcached';
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment