當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Hybrid_Endpoint::processAuthStart方法代碼示例

本文整理匯總了PHP中Hybrid_Endpoint::processAuthStart方法的典型用法代碼示例。如果您正苦於以下問題:PHP Hybrid_Endpoint::processAuthStart方法的具體用法?PHP Hybrid_Endpoint::processAuthStart怎麽用?PHP Hybrid_Endpoint::processAuthStart使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Hybrid_Endpoint的用法示例。


在下文中一共展示了Hybrid_Endpoint::processAuthStart方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: process

 /**
  * Process the current request
  *
  * $request - The current request parameters. Leave as NULL to default to use $_REQUEST.
  */
 public static function process($request = NULL)
 {
     // Setup request variable
     Hybrid_Endpoint::$request = $request;
     if (is_null(Hybrid_Endpoint::$request)) {
         Hybrid_Endpoint::$request = $_REQUEST;
     }
     // If windows_live_channel requested, we return our windows_live WRAP_CHANNEL_URL
     if (isset(Hybrid_Endpoint::$request["get"]) && Hybrid_Endpoint::$request["get"] == "windows_live_channel") {
         Hybrid_Endpoint::processWindowsLiveChannel();
     }
     // If openid_policy requested, we return our policy document
     if (isset(Hybrid_Endpoint::$request["get"]) && Hybrid_Endpoint::$request["get"] == "openid_policy") {
         Hybrid_Endpoint::processOpenidPolicy();
     }
     // If openid_xrds requested, we return our XRDS document
     if (isset(Hybrid_Endpoint::$request["get"]) && Hybrid_Endpoint::$request["get"] == "openid_xrds") {
         Hybrid_Endpoint::processOpenidXRDS();
     }
     // If we get a hauth.start
     if (isset(Hybrid_Endpoint::$request["hauth_start"]) && Hybrid_Endpoint::$request["hauth_start"]) {
         Hybrid_Endpoint::processAuthStart();
     } elseif (isset(Hybrid_Endpoint::$request["hauth_done"]) && Hybrid_Endpoint::$request["hauth_done"]) {
         Hybrid_Endpoint::processAuthDone();
     } else {
         Hybrid_Endpoint::processOpenidRealm();
     }
 }
開發者ID:rwohleb,項目名稱:hybridauth,代碼行數:33,代碼來源:Endpoint.php

示例2: process

 /**
  * Process the current request
  *
  * $request - The current request parameters. Leave as NULL to default to use $_REQUEST.
  */
 public static function process($request = NULL)
 {
     // Setup request variable
     Hybrid_Endpoint::$request = $request;
     if (is_null(Hybrid_Endpoint::$request)) {
         // Fix a strange behavior when some provider call back ha endpoint
         // with /index.php?hauth.done={provider}?{args}...
         // >here we need to recreate the $_REQUEST
         if (strrpos($_SERVER["QUERY_STRING"], '?')) {
             $_SERVER["QUERY_STRING"] = str_replace("?", "&", $_SERVER["QUERY_STRING"]);
             parse_str($_SERVER["QUERY_STRING"], $_REQUEST);
         }
         Hybrid_Endpoint::$request = $_REQUEST;
     }
     // If windows_live_channel requested, we return our windows_live WRAP_CHANNEL_URL
     if (isset(Hybrid_Endpoint::$request["get"]) && Hybrid_Endpoint::$request["get"] == "windows_live_channel") {
         Hybrid_Endpoint::processWindowsLiveChannel();
     }
     // If openid_policy requested, we return our policy document
     if (isset(Hybrid_Endpoint::$request["get"]) && Hybrid_Endpoint::$request["get"] == "openid_policy") {
         Hybrid_Endpoint::processOpenidPolicy();
     }
     // If openid_xrds requested, we return our XRDS document
     if (isset(Hybrid_Endpoint::$request["get"]) && Hybrid_Endpoint::$request["get"] == "openid_xrds") {
         Hybrid_Endpoint::processOpenidXRDS();
     }
     // If we get a hauth.start
     if (isset(Hybrid_Endpoint::$request["hauth_start"]) && Hybrid_Endpoint::$request["hauth_start"]) {
         Hybrid_Endpoint::processAuthStart();
     } elseif (isset(Hybrid_Endpoint::$request["hauth_done"]) && Hybrid_Endpoint::$request["hauth_done"]) {
         Hybrid_Endpoint::processAuthDone();
     } else {
         Hybrid_Endpoint::processOpenidRealm();
     }
 }
開發者ID:a303,項目名稱:smart_lp2,代碼行數:40,代碼來源:Endpoint.php

示例3: processAuthStart

 public static function processAuthStart()
 {
     WSL_Hybrid_Endpoint::authInit();
     try {
         parent::processAuthStart();
     } catch (Exception $e) {
         WSL_Hybrid_Endpoint::dieError("412 Precondition Failed", $e->getMessage() . "<br />For more information refer to WSL <a href='http://miled.github.io/wordpress-social-login/troubleshooting.html' target='_blank'>Troubleshooting</a>");
     }
 }
開發者ID:Vatia13,項目名稱:dancesport,代碼行數:9,代碼來源:WSL_Endpoint.php


注:本文中的Hybrid_Endpoint::processAuthStart方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。