dolibarr  9.0.0
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

◆ array2url()

SimpleOpenID::array2url (   $arr)

array2url

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

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

◆ CURL_Request()

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

CURL_Request.

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

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

◆ ErrorStore()

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

ErrorStore.

Parameters
string$codeCode
string$descDescription
Returns
void

Definition at line 199 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|unknown

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

◆ GetError()

SimpleOpenID::GetError ( )

SetOpenIDServer.

Returns
void

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

◆ GetIdentity()

SimpleOpenID::GetIdentity ( )

GetIdentity.

Returns
string

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

◆ GetOpenIDServer()

SimpleOpenID::GetOpenIDServer (   $url = '')

Get openid server.

Parameters
string$urlUrl to found endpoint
Returns
string Endpoint

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

◆ GetRedirectURL()

SimpleOpenID::GetRedirectURL ( )

GetRedirectURL.

Returns
string

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

Referenced by Redirect().

◆ HTML2OpenIDServer()

SimpleOpenID::HTML2OpenIDServer (   $content)

HTML2OpenIDServer.

Parameters
string$contentContent
Returns
array Array of servers

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

◆ IsError()

SimpleOpenID::IsError ( )

IsError.

Returns
boolean

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

◆ OpenID_Standarize()

SimpleOpenID::OpenID_Standarize (   $openid_identity = null)

OpenID_Standarize.

Parameters
string$openid_identityServer
Returns
string

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

◆ Redirect()

SimpleOpenID::Redirect ( )

Redirect.

Returns
void

Definition at line 452 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 521 of file openid.class.php.

◆ SetApprovedURL()

SimpleOpenID::SetApprovedURL (   $a)

SetApprovedURL.

Parameters
string$aServer
Returns
void

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

◆ SetCancelURL()

SimpleOpenID::SetCancelURL (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

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

◆ SetIdentity()

SimpleOpenID::SetIdentity (   $a)

SetIdentity.

Parameters
string$aServer
Returns
void

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

◆ SetOpenIDServer()

SimpleOpenID::SetOpenIDServer (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

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

◆ SetOptionalFields()

SimpleOpenID::SetOptionalFields (   $a)

SetOptionalFields.

Parameters
string$aServer
Returns
void

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

◆ SetRequiredFields()

SimpleOpenID::SetRequiredFields (   $a)

SetRequiredFields.

Parameters
string$aServer
Returns
void

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

◆ SetTrustRoot()

SimpleOpenID::SetTrustRoot (   $a)

SetOpenIDServer.

Parameters
string$aServer
Returns
void

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

◆ splitResponse()

SimpleOpenID::splitResponse (   $response)

splitResponse

Parameters
string$responseServer
Returns
void

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

◆ ValidateWithServer()

SimpleOpenID::ValidateWithServer ( )

ValidateWithServer.

Returns
boolean

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


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