File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,18 +38,10 @@ public function __construct($info, $config) {
3838 /* Call the parent constructor first, as required by the interface. */
3939 parent ::__construct ($ info , $ config );
4040
41- if (!array_key_exists ('key ' , $ config ))
42- throw new Exception ('Twitter authentication source is not properly configured: missing [key] ' );
43-
44- $ this ->key = $ config ['key ' ];
45-
46- if (!array_key_exists ('secret ' , $ config ))
47- throw new Exception ('Twitter authentication source is not properly configured: missing [secret] ' );
48-
49- $ this ->secret = $ config ['secret ' ];
50-
51- // require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/extlibinc/facebook.php');
41+ $ configObject = SimpleSAML_Configuration::loadFromArray ($ config , 'authsources[ ' . var_export ($ this ->authId , TRUE ) . '] ' );
5242
43+ $ this ->key = $ configObject ->getString ('key ' );
44+ $ this ->secret = $ configObject ->getString ('secret ' );
5345 }
5446
5547
@@ -127,5 +119,3 @@ public function finalStep(&$state) {
127119 }
128120
129121}
130-
131- ?>
You can’t perform that action at this time.
0 commit comments