SimpleSAML_Auth_Source::loginCompleted() needs to be declared public, as it is used as a callback from outside the class.