SimpleOpenID
class SimpleOpenID (View source)
Class to manage OpenID
Properties
| string | $openid_url_identity | ||
| array{openid_server?: string, trust_root?: string, cancel?: string, approved?: string} | $URLs | ||
| array{}|array{0: string, 1: string} | $error | ||
| array{required: string[], optional: string[]} | $fields |
Methods
__construct()
Constructor
void
SetOpenIDServer(string $a)
SetOpenIDServer
void
SetTrustRoot(string $a)
SetOpenIDServer
void
SetCancelURL(string $a)
SetOpenIDServer
void
SetApprovedURL(string $a)
SetApprovedURL
void
SetRequiredFields(string|string[] $a)
SetRequiredFields
void
SetOptionalFields(string|string[] $a)
SetOptionalFields
void
SetIdentity(string $a)
SetIdentity
string
GetIdentity()
GetIdentity
array{code: string, description: string}
GetError()
SetOpenIDServer
void
ErrorStore(string $code, string $desc = null)
ErrorStore
bool
IsError()
IsError
array<string, string>
splitResponse(string $response)
splitResponse
string
OpenID_Standarize(string $openid_identity = null)
OpenID_Standarize
false|string
array2url(array<string, string> $arr)
array2url
bool|void
FSOCK_Request(string $url, string $method = "GET", string $params = "")
FSOCK_Request
array{0: string[], 1: string[]}
HTML2OpenIDServer(string $content)
HTML2OpenIDServer
string|false
GetOpenIDServer(string $url = '')
Get openid server
string
GetRedirectURL()
GetRedirectURL
void
Redirect()
Redirect
bool
validateWithServer()
validateWithServer
string|false
sendDiscoveryRequestToGetXRDS(string $url = '')
Get XRDS response and set possible servers.
Details
__construct()
Constructor
void
SetOpenIDServer(string $a)
SetOpenIDServer
void
SetTrustRoot(string $a)
SetOpenIDServer
void
SetCancelURL(string $a)
SetOpenIDServer
void
SetApprovedURL(string $a)
SetApprovedURL
void
SetRequiredFields(string|string[] $a)
SetRequiredFields
void
SetOptionalFields(string|string[] $a)
SetOptionalFields
void
SetIdentity(string $a)
SetIdentity
string
GetIdentity()
GetIdentity
array{code: string, description: string}
GetError()
SetOpenIDServer
void
ErrorStore(string $code, string $desc = null)
ErrorStore
bool
IsError()
IsError
array<string, string>
splitResponse(string $response)
splitResponse
string
OpenID_Standarize(string $openid_identity = null)
OpenID_Standarize
false|string
array2url(array<string, string> $arr)
array2url
bool|void
FSOCK_Request(string $url, string $method = "GET", string $params = "")
FSOCK_Request
array{0: string[], 1: string[]}
HTML2OpenIDServer(string $content)
HTML2OpenIDServer
string|false
GetOpenIDServer(string $url = '')
Get openid server
string
GetRedirectURL()
GetRedirectURL
void
Redirect()
Redirect
bool
validateWithServer()
validateWithServer
string|false
sendDiscoveryRequestToGetXRDS(string $url = '')
Get XRDS response and set possible servers.