diff --git a/docs/simplesamlphp-customauth.md b/docs/simplesamlphp-customauth.md index ac9b04e2456248c8ab91e7667136b500b1ee069c..679c6586620b8dbe70fb05e9ed43904315b27024 100644 --- a/docs/simplesamlphp-customauth.md +++ b/docs/simplesamlphp-customauth.md @@ -40,6 +40,8 @@ To begin with, we will create a very simple authentication source, where the use Create the file `modules/mymodule/lib/Auth/Source/MyAuth.php` with the following contents: <?php + namespace SimpleSAML\Module\mymodule\Auth\Source; + class MyAuth extends \SimpleSAML\Module\core\Auth\UserPassBase { protected function login($username, $password) { if ($username !== 'theusername' || $password !== 'thepassword') { @@ -58,7 +60,7 @@ Some things to note: - The classname is `\SimpleSAML\Module\mymodule\Auth\Source\MyAuth`. This tells SimpleSAMLphp to look for the class in `modules/mymodule/lib/Auth/Source/MyAuth.php`. - - Our authentication source subclassese `\SimpleSAML\Module\core\Auth\UserPassBase`. + - Our authentication source subclasses `\SimpleSAML\Module\core\Auth\UserPassBase`. This is a helper-class that implements much of the common code needed for username/password authentication. - The `login` function receives the username and password the user enters.