From 00a6fca777708c4c1bbcfcd988e65aea8b0cff83 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sat, 23 Mar 2019 13:43:44 +0100
Subject: [PATCH] Fix example + type

---
 docs/simplesamlphp-customauth.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/simplesamlphp-customauth.md b/docs/simplesamlphp-customauth.md
index ac9b04e24..679c65866 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.
-- 
GitLab