Skip to content

Commit

Permalink
module name lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
szabogyula committed Apr 27, 2016
1 parent 9a980da commit dc73228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ config/authsources.php

```
'authVHO' => array(
'authVHO:authVHO',
'authvho:authVHO',
'vho_login_url' => 'https://your.vho.com/loginForIdp'
),
```
9 changes: 5 additions & 4 deletions lib/Auth/Source/authVHO.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
* ),
*
*/
class sspmod_authVHO_Auth_Source_authVHO extends SimpleSAML_Auth_Source {
class sspmod_authvho_Auth_Source_authVHO extends SimpleSAML_Auth_Source {

private $config;
/**
* Constructor for this authentication source.
*
Expand All @@ -35,7 +36,7 @@ public function __construct($info, $config)
// Call the parent constructor first, as required by the interface
parent::__construct($info, $config);

// Do any other configuration we need here
$this->config = $config;
}


Expand Down Expand Up @@ -122,7 +123,7 @@ public function authenticate(&$state)
* We assume that whatever authentication page we send the user to has an
* option to return the user to a specific page afterwards.
*/
$returnTo = SimpleSAML_Module::getModuleURL('authVHO/resume.php', array(
$returnTo = SimpleSAML_Module::getModuleURL('authvho/resume.php', array(
'State' => $stateId,
));

Expand All @@ -132,7 +133,7 @@ public function authenticate(&$state)
* This is in the configuration file.
*/

$authPage = $config->get('vho_login_url');
$authPage = $this->config['vho_login_url'];

/*
* The redirect to the authentication page.
Expand Down

0 comments on commit dc73228

Please sign in to comment.