/** * @param OpenIdMessage $message * @return bool */ public static function IsOpenIdAuthenticationRequest(OpenIdMessage $message) { $mode = $message->getMode(); if ($mode == OpenIdProtocol::ImmediateMode || $mode == OpenIdProtocol::SetupMode) { return true; } return false; }
public static function IsOpenIdAssociationSessionRequest(OpenIdMessage $message) { $mode = $message->getMode(); if ($mode == OpenIdProtocol::AssociateMode) { return true; } return false; }
public static function IsOpenIdCheckAuthenticationRequest(OpenIdMessage $message) { $mode = $message->getMode(); if ($mode == OpenIdProtocol::CheckAuthenticationMode) { return true; } return false; }
public function getCurrentRequest() { $msg = new OpenIdMessage(Input::all()); if (!$msg->isValid()) { $msg = null; $old_data = Input::old(); $openid_params = array(); foreach ($old_data as $key => $value) { if (stristr($key, "openid") !== false) { $openid_params[$key] = $value; } } if (count($openid_params) > 0) { $msg = new OpenIdMessage($openid_params); } } return $msg; }