| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Source view] [Print] [Project Stats]
Functions for dealing with OpenID trust roots PHP versions 4 and 5
| Author: | JanRain, Inc. <openid@janrain.com> |
| Copyright: | 2005-2008 Janrain, Inc. |
| License: | http://www.apache.org/licenses/LICENSE-2.0 Apache |
| File Size: | 465 lines (14 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Auth_OpenID_TrustRoot:: (9 methods):
buildDiscoveryURL()
_parse()
isSane()
match()
filter_extractReturnURL()
Auth_OpenID_extractReturnURL()
Auth_OpenID_returnToMatches()
Auth_OpenID_getAllowedReturnURLs()
Auth_OpenID_verifyReturnTo()
Class: Auth_OpenID_TrustRoot - X-Ref
A wrapper for trust-root related functions| buildDiscoveryURL($realm) X-Ref |
| No description |
| _parse($trust_root) X-Ref |
| Parse a URL into its trust_root parts. param: string $trust_root The url to parse return: mixed $parsed Either an associative array of trust root |
| isSane($trust_root) X-Ref |
| Is this trust root sane? A trust root is sane if it is syntactically valid and it has a reasonable domain name. Specifically, the domain name must be more than one level below a standard TLD or more than two levels below a two-letter tld. For example, '*.com' is not a sane trust root, but '*.foo.com' is. '*.co.uk' is not sane, but '*.bbc.co.uk' is. This check is not always correct, but it attempts to err on the side of marking sane trust roots insane instead of marking insane trust roots sane. For example, 'kink.fm' is marked as insane even though it "should" (for some meaning of should) be marked sane. This function should be used when creating OpenID servers to alert the users of the server when a consumer attempts to get the user to accept a suspicious trust root. param: string $trust_root The trust root to check return: bool $sanity Whether the trust root looks OK |
| match($trust_root, $url) X-Ref |
| Does this URL match the given trust root? Return whether the URL falls under the given trust root. This does not check whether the trust root is sane. If the URL or trust root do not parse, this function will return false. param: string $trust_root The trust root to match against param: string $url The URL to check return: bool $matches Whether the URL matches against the |
| filter_extractReturnURL(&$endpoint) X-Ref |
| No description |
| Auth_OpenID_extractReturnURL(&$endpoint_list) X-Ref |
| No description |
| Auth_OpenID_returnToMatches($allowed_return_to_urls, $return_to) X-Ref |
| No description |
| Auth_OpenID_getAllowedReturnURLs($relying_party_url, &$fetcher,$discover_function=null) X-Ref |
| No description |
| Auth_OpenID_verifyReturnTo($realm_str, $return_to, &$fetcher,$_vrfy='Auth_OpenID_getAllowedReturnURLs') X-Ref |
| No description |
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |