{ $state = SimpleSAML_Auth_State::loadState($authStateId, self::STAGEID); if (isset($state[self::CONFIGID])) { return $state[self::CONFIGID]; } return array(); } /** * Get the response object * * @return object */ public static function getResponse() { // check if the client supports json, if not fallback to the plain text if (self::getProtocolVersion(true) > 1) { return Tiqr_Response_Abstract::createResponse(); } else { return new sspmod_authTiqr_Response_Plain(); } } protected static function _validateAuthState($authStateId) { assert('is_string($authStateId)'); /* Retrieve the authentication state. */ $state = SimpleSAML_Auth_State::loadState($authStateId, self::STAGEID); return $state; } } sspmod_authTiqr_Auth_Tiqr::classAutoLoader();