public function getAuthSource() { $as = SimpleSAML_Auth_Source::getById($this->authSource); if ($as === null) { throw new SimpleSAML_Error_AuthSource($this->authSource, 'Unknown authentication source.'); } return $as; }
/** * Re-authenticate the user. * * This function re-authenticates an user with an existing session. This gives the authentication source a chance * to do additional work when re-authenticating for SSO. * * Note: This function is not used when ForceAuthn=true. * * @param array &$state The authentication request state. * * @throws SimpleSAML_Error_Exception If there is no auth source defined for this IdP. */ private function reauthenticate(array &$state) { $sourceImpl = $this->authSource->getAuthSource(); if ($sourceImpl === null) { throw new SimpleSAML_Error_Exception('No such auth source defined.'); } $sourceImpl->reauthenticate($state); }