diff --git a/modules/exampleauth/lib/Auth/Source/External.php b/modules/exampleauth/lib/Auth/Source/External.php
index 0642e3e77b6330f9df84a4ef8e63db9a0a963756..60c2ebfef23544c68638c4fd2e1a426b6009db4a 100644
--- a/modules/exampleauth/lib/Auth/Source/External.php
+++ b/modules/exampleauth/lib/Auth/Source/External.php
@@ -129,7 +129,7 @@ class External extends \SimpleSAML\Auth\Source
          * First we add the identifier of this authentication source
          * to the state array, so that we know where to resume.
          */
-        $state['exampleauth:AuthID'] = self::AUTHID;
+        $state['exampleauth:AuthID'] = $this->authId;
 
         /*
          * We need to save the $state-array, so that we can resume the