dolibarr  7.0.0-beta
Public Member Functions | List of all members
SimpleOpenID Class Reference

Class to manage OpenID. More...

Public Member Functions

 __construct ()
 Constructor.
 
 SetOpenIDServer ($a)
 SetOpenIDServer. More...
 
 SetTrustRoot ($a)
 SetOpenIDServer. More...
 
 SetCancelURL ($a)
 SetOpenIDServer. More...
 
 SetApprovedURL ($a)
 SetApprovedURL. More...
 
 SetRequiredFields ($a)
 SetRequiredFields. More...
 
 SetOptionalFields ($a)
 SetOptionalFields. More...
 
 SetIdentity ($a)
 SetIdentity. More...
 
 GetIdentity ()
 GetIdentity. More...
 
 GetError ()
 SetOpenIDServer. More...
 
 ErrorStore ($code, $desc=null)
 ErrorStore. More...
 
 IsError ()
 IsError. More...
 
 splitResponse ($response)
 splitResponse More...
 
 OpenID_Standarize ($openid_identity=null)
 OpenID_Standarize. More...
 
 array2url ($arr)
 array2url More...
 
 FSOCK_Request ($url, $method="GET", $params="")
 FSOCK_Request. More...
 
 CURL_Request ($url, $method="GET", $params="")
 CURL_Request. More...
 
 HTML2OpenIDServer ($content)
 HTML2OpenIDServer. More...
 
 GetOpenIDServer ($url='')
 Get openid server. More...
 
 GetRedirectURL ()
 GetRedirectURL. More...
 
 Redirect ()
 Redirect. More...
 
 ValidateWithServer ()
 ValidateWithServer. More...
 
 sendDiscoveryRequestToGetXRDS ($url='')
 Get XRDS response and set possible servers. More...
 

Detailed Description

Class to manage OpenID.

Definition at line 27 of file openid.class.php.

Member Function Documentation

SimpleOpenID::array2url (   $arr)

array2url

Parameters
array$arrAn array
Returns
false|string false if KO, string of url if OK

Definition at line 256 of file openid.class.php.

Referenced by CURL_Request(), and GetRedirectURL().

SimpleOpenID::CURL_Request (   $url,
  $method = "GET",
  $params = "" 
)

CURL_Request.

Parameters
string$urlURL
string$methodMethod
string$paramsParams
Returns
string

Definition at line 308 of file openid.class.php.

References array2url(), and ErrorStore().

SimpleOpenID::ErrorStore (   $code,
  $desc = null 
)

ErrorStore.

Parameters
string$codeCode
string$descDescription
Returns
void

Definition at line 178 of file openid.class.php.

Referenced by CURL_Request(), FSOCK_Request(), and GetOpenIDServer().

SimpleOpenID::FSOCK_Request (   $url,
  $method = "GET",
  $params = "" 
)

FSOCK_Request.

Parameters
string$urlURL
string$methodMethod
string$paramsParams
Returns
boolean|unknown

Definition at line 276 of file openid.class.php.

References ErrorStore().

SimpleOpenID::GetError ( )

SetOpenIDServer.

Returns
void

Definition at line 165 of file openid.class.php.

SimpleOpenID::GetIdentity ( )

GetIdentity.

Returns
string

Definition at line 155 of file openid.class.php.

SimpleOpenID::GetOpenIDServer (   $url = '')

Get openid server.

Parameters
string$urlUrl to found endpoint
Returns
string Endpoint

Definition at line 362 of file openid.class.php.

References ErrorStore(), getURLContent(), HTML2OpenIDServer(), SetIdentity(), and SetOpenIDServer().

SimpleOpenID::GetRedirectURL ( )

GetRedirectURL.

Returns
string

Definition at line 389 of file openid.class.php.

References array2url().

Referenced by Redirect().

SimpleOpenID::HTML2OpenIDServer (   $content)

HTML2OpenIDServer.

Parameters
string$contentContent
Returns
array Array of servers

Definition at line 336 of file openid.class.php.

Referenced by GetOpenIDServer().

SimpleOpenID::IsError ( )

IsError.

Returns
boolean

Definition at line 192 of file openid.class.php.

SimpleOpenID::OpenID_Standarize (   $openid_identity = null)

OpenID_Standarize.

Parameters
string$openid_identityServer
Returns
string

Definition at line 230 of file openid.class.php.

SimpleOpenID::Redirect ( )

Redirect.

Returns
void

Definition at line 413 of file openid.class.php.

References GetRedirectURL().

SimpleOpenID::sendDiscoveryRequestToGetXRDS (   $url = '')

Get XRDS response and set possible servers.

Parameters
string$urlUrl of endpoint to request
Returns
string First endpoint OpenID server found. False if it failed to found.

Definition at line 479 of file openid.class.php.

SimpleOpenID::SetApprovedURL (   $a)

SetApprovedURL.

Parameters
string$aServer
Returns
void

Definition at line 87 of file openid.class.php.

SimpleOpenID::SetCancelURL (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

Definition at line 76 of file openid.class.php.

SimpleOpenID::SetIdentity (   $a)

SetIdentity.

Parameters
string$aServer
Returns
void

Definition at line 128 of file openid.class.php.

Referenced by GetOpenIDServer().

SimpleOpenID::SetOpenIDServer (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

Definition at line 54 of file openid.class.php.

Referenced by GetOpenIDServer().

SimpleOpenID::SetOptionalFields (   $a)

SetOptionalFields.

Parameters
string$aServer
Returns
void

Definition at line 113 of file openid.class.php.

SimpleOpenID::SetRequiredFields (   $a)

SetRequiredFields.

Parameters
string$aServer
Returns
void

Definition at line 98 of file openid.class.php.

SimpleOpenID::SetTrustRoot (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

Definition at line 65 of file openid.class.php.

SimpleOpenID::splitResponse (   $response)

splitResponse

Parameters
string$responseServer
Returns
void

Definition at line 210 of file openid.class.php.

SimpleOpenID::ValidateWithServer ( )

ValidateWithServer.

Returns
boolean

Definition at line 433 of file openid.class.php.


The documentation for this class was generated from the following file: