dolibarr  19.0.0-dev
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...
 
 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

◆ array2url()

SimpleOpenID::array2url (   $arr)

array2url

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

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

◆ ErrorStore()

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

ErrorStore.

Parameters
string$codeCode
string$descDescription
Returns
void

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

◆ FSOCK_Request()

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

FSOCK_Request.

Parameters
string$urlURL
string$methodMethod
string$paramsParams
Returns
boolean|void True if success, False if error

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

◆ GetError()

SimpleOpenID::GetError ( )

SetOpenIDServer.

Returns
array

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

◆ GetIdentity()

SimpleOpenID::GetIdentity ( )

GetIdentity.

Returns
string

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

◆ GetOpenIDServer()

SimpleOpenID::GetOpenIDServer (   $url = '')

Get openid server.

Parameters
string$urlUrl to found endpoint
Returns
string Endpoint

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

◆ GetRedirectURL()

SimpleOpenID::GetRedirectURL ( )

GetRedirectURL.

Returns
string

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

Referenced by Redirect().

◆ HTML2OpenIDServer()

SimpleOpenID::HTML2OpenIDServer (   $content)

HTML2OpenIDServer.

Parameters
string$contentContent
Returns
array Array of servers

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

◆ IsError()

SimpleOpenID::IsError ( )

IsError.

Returns
boolean

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

◆ OpenID_Standarize()

SimpleOpenID::OpenID_Standarize (   $openid_identity = null)

OpenID_Standarize.

Parameters
string$openid_identityServer
Returns
string

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

◆ Redirect()

SimpleOpenID::Redirect ( )

Redirect.

Returns
void

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

References GetRedirectURL().

◆ sendDiscoveryRequestToGetXRDS()

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 489 of file openid.class.php.

◆ SetApprovedURL()

SimpleOpenID::SetApprovedURL (   $a)

SetApprovedURL.

Parameters
string$aServer
Returns
void

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

◆ SetCancelURL()

SimpleOpenID::SetCancelURL (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

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

◆ SetIdentity()

SimpleOpenID::SetIdentity (   $a)

SetIdentity.

Parameters
string$aServer
Returns
void

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

◆ SetOpenIDServer()

SimpleOpenID::SetOpenIDServer (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

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

◆ SetOptionalFields()

SimpleOpenID::SetOptionalFields (   $a)

SetOptionalFields.

Parameters
string | array$aServer
Returns
void

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

◆ SetRequiredFields()

SimpleOpenID::SetRequiredFields (   $a)

SetRequiredFields.

Parameters
string | array$aServer
Returns
void

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

◆ SetTrustRoot()

SimpleOpenID::SetTrustRoot (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

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

◆ splitResponse()

SimpleOpenID::splitResponse (   $response)

splitResponse

Parameters
string$responseServer
Returns
array

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

◆ ValidateWithServer()

SimpleOpenID::ValidateWithServer ( )

ValidateWithServer.

Returns
boolean

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


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