summaryrefslogtreecommitdiffstats
path: root/modules/exampleauth/lib
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2015-11-06 16:34:34 +0100
committerJaime Perez Crespo <jaime.perez@uninett.no>2015-11-06 16:34:34 +0100
commitaf24da40fd3e4b9067a661952c28b3b5e4413940 (patch)
treee693b8622212fcac67e904528d72e116657b829e /modules/exampleauth/lib
parentf25c7815af52a751cb815709ff33abee14e130a4 (diff)
downloadsimplesamlphp-af24da40fd3e4b9067a661952c28b3b5e4413940.zip
simplesamlphp-af24da40fd3e4b9067a661952c28b3b5e4413940.tar.gz
simplesamlphp-af24da40fd3e4b9067a661952c28b3b5e4413940.tar.bz2
Clean one-liner comments.
Diffstat (limited to 'modules/exampleauth/lib')
-rw-r--r--modules/exampleauth/lib/Auth/Process/RedirectTest.php4
-rw-r--r--modules/exampleauth/lib/Auth/Source/External.php4
-rw-r--r--modules/exampleauth/lib/Auth/Source/Static.php4
-rw-r--r--modules/exampleauth/lib/Auth/Source/UserPass.php4
4 files changed, 8 insertions, 8 deletions
diff --git a/modules/exampleauth/lib/Auth/Process/RedirectTest.php b/modules/exampleauth/lib/Auth/Process/RedirectTest.php
index 28751cd..23ad3be 100644
--- a/modules/exampleauth/lib/Auth/Process/RedirectTest.php
+++ b/modules/exampleauth/lib/Auth/Process/RedirectTest.php
@@ -16,10 +16,10 @@ class sspmod_exampleauth_Auth_Process_RedirectTest extends SimpleSAML_Auth_Proce
assert('is_array($state)');
assert('array_key_exists("Attributes", $state)');
- /* To check whether the state is saved correctly. */
+ // To check whether the state is saved correctly
$state['Attributes']['RedirectTest1'] = array('OK');
- /* Save state and redirect. */
+ // Save state and redirect
$id = SimpleSAML_Auth_State::saveState($state, 'exampleauth:redirectfilter-test');
$url = SimpleSAML_Module::getModuleURL('exampleauth/redirecttest.php');
\SimpleSAML\Utils\HTTP::redirectTrustedURL($url, array('StateId' => $id));
diff --git a/modules/exampleauth/lib/Auth/Source/External.php b/modules/exampleauth/lib/Auth/Source/External.php
index 3df0b93..ad00747 100644
--- a/modules/exampleauth/lib/Auth/Source/External.php
+++ b/modules/exampleauth/lib/Auth/Source/External.php
@@ -32,10 +32,10 @@ class sspmod_exampleauth_Auth_Source_External extends SimpleSAML_Auth_Source {
assert('is_array($info)');
assert('is_array($config)');
- /* Call the parent constructor first, as required by the interface. */
+ // Call the parent constructor first, as required by the interface
parent::__construct($info, $config);
- /* Do any other configuration we need here. */
+ // Do any other configuration we need here
}
diff --git a/modules/exampleauth/lib/Auth/Source/Static.php b/modules/exampleauth/lib/Auth/Source/Static.php
index f2f9e8a..4f7513f 100644
--- a/modules/exampleauth/lib/Auth/Source/Static.php
+++ b/modules/exampleauth/lib/Auth/Source/Static.php
@@ -28,11 +28,11 @@ class sspmod_exampleauth_Auth_Source_Static extends SimpleSAML_Auth_Source {
assert('is_array($info)');
assert('is_array($config)');
- /* Call the parent constructor first, as required by the interface. */
+ // Call the parent constructor first, as required by the interface
parent::__construct($info, $config);
- /* Parse attributes. */
+ // Parse attributes
try {
$this->attributes = SimpleSAML\Utils\Attributes::normalizeAttributesArray($config);
} catch(Exception $e) {
diff --git a/modules/exampleauth/lib/Auth/Source/UserPass.php b/modules/exampleauth/lib/Auth/Source/UserPass.php
index 5c464d3..857d8ef 100644
--- a/modules/exampleauth/lib/Auth/Source/UserPass.php
+++ b/modules/exampleauth/lib/Auth/Source/UserPass.php
@@ -29,12 +29,12 @@ class sspmod_exampleauth_Auth_Source_UserPass extends sspmod_core_Auth_UserPassB
assert('is_array($info)');
assert('is_array($config)');
- /* Call the parent constructor first, as required by the interface. */
+ // Call the parent constructor first, as required by the interface
parent::__construct($info, $config);
$this->users = array();
- /* Validate and parse our configuration. */
+ // Validate and parse our configuration
foreach ($config as $userpass => $attributes) {
if (!is_string($userpass)) {
throw new Exception('Invalid <username>:<password> for authentication source ' .