diff --git a/lib/SimpleSAML/Auth/Source.php b/lib/SimpleSAML/Auth/Source.php
index 267c48df315fc8f11884682e6df2d8a6fb7363a8..6781d6986cdb92dc29f52a15cfe6eab85c77de00 100644
--- a/lib/SimpleSAML/Auth/Source.php
+++ b/lib/SimpleSAML/Auth/Source.php
@@ -71,6 +71,17 @@ abstract class SimpleSAML_Auth_Source {
 	}
 
 
+	/**
+	 * Retrieve the ID of this authentication source.
+	 *
+	 * @return string  The ID of this authentication source.
+	 */
+	public function getAuthId() {
+
+		return $this->authId;
+	}
+
+
 	/**
 	 * Process a request.
 	 *