This repository was archived by the owner on Sep 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22All notable changes to this project will be documented in this file.
33
44## [ Unreleased]
5+ #### Added
6+ - Added possibility to show statistics only after authentication
7+
58#### Changed
69- Remove unnecessary is_null()
710- Use SimpleSAML\Database
Original file line number Diff line number Diff line change 9797 * Fill the table name for serviceProviders
9898 */
9999 'serviceProvidersMapTableName ' => 'serviceProvidersMap ' ,
100+
101+ /**
102+ * Authentication source name if authentication should be required.
103+ * Defaults to empty string.
104+ */
105+ //'requireAuth.source' => 'default-sp',
100106];
Original file line number Diff line number Diff line change 1515$ session = Session::getSessionFromRequest ();
1616
1717$ configStatisticsproxy = Configuration::getConfig (CONFIG_FILE_NAME_STATISTICSPROXY );
18+
19+ $ authSource = $ configStatisticsproxy ->getString ('requireAuth.source ' , '' );
20+ if ($ authSource ) {
21+ $ as = new \SimpleSAML \Auth \Simple ($ authSource );
22+ $ as ->requireAuth ();
23+ }
24+
1825$ mode = $ configStatisticsproxy ->getString (MODE , 'PROXY ' );
1926
2027$ t = new Template ($ config , 'proxystatistics:statistics-tpl.php ' );
You can’t perform that action at this time.
0 commit comments