dokeos
[ class tree: dokeos ] [ index: dokeos ] [ all elements ]

Procedural File: openid.lib.php

Source Location: /main/auth/openid/openid.lib.php



Page Details:



Tags:

filesource:  Source Code for this file







OPENID_DH_DEFAULT_GEN [line 15]

OPENID_DH_DEFAULT_GEN = '2'

[ Top ]



OPENID_DH_DEFAULT_MOD [line 8]

OPENID_DH_DEFAULT_MOD = '155172898181473697471232257763715539915724801'.'966915404479707795314057629378541917580651227423698188993727816152646631'.'438561595825688188889951272158842675419950341258706556549803580104870537'.'681476726513255747040765857479291291572334510643245094715007229621094194'.'349783925984760375594985848253359305585439638443'
OpenID utility functions. Taken from Drupal 6 code (from dries)


[ Top ]



OPENID_NS_1_0 [line 22]

OPENID_NS_1_0 = 'http://openid.net/signon/1.0'

[ Top ]



OPENID_NS_1_1 [line 21]

OPENID_NS_1_1 = 'http://openid.net/signon/1.1'

[ Top ]



OPENID_NS_2_0 [line 20]

OPENID_NS_2_0 = 'http://specs.openid.net/auth/2.0'

[ Top ]



OPENID_RAND_SOURCE [line 17]

OPENID_RAND_SOURCE = '/dev/urandom'

[ Top ]



OPENID_SHA1_BLOCKSIZE [line 16]

OPENID_SHA1_BLOCKSIZE = 64

[ Top ]




bcpowmod [line 393]

void bcpowmod( $base, $exp, $mod)

Provide bcpowmod support for PHP4.



Parameters

   $base  
   $exp  
   $mod  
[ Top ]



openid_redirect [line 41]

void openid_redirect( $url, $message)

Creates a js auto-submit redirect for (for the 2.x protocol)



Parameters

   $url  
   $message  
[ Top ]



openid_redirect_http [line 27]

void openid_redirect_http( $url, $message)

Performs an HTTP 302 redirect (for the 1.x protocol).



Parameters

   $url  
   $message  
[ Top ]



_openid_create_message [line 110]

void _openid_create_message( $data)

Create a serialized message packet as per spec: $key:$value\n .



Parameters

   $data  
[ Top ]



_openid_dh_base64_to_long [line 249]

void _openid_dh_base64_to_long( $str)



Parameters

   $str  
[ Top ]



_openid_dh_binary_to_long [line 259]

void _openid_dh_binary_to_long( $str)



Parameters

   $str  
[ Top ]



_openid_dh_long_to_base64 [line 255]

void _openid_dh_long_to_base64( $str)



Parameters

   $str  
[ Top ]



_openid_dh_long_to_binary [line 271]

void _openid_dh_long_to_binary( $long)



Parameters

   $long  
[ Top ]



_openid_dh_rand [line 311]

void _openid_dh_rand( $stop)



Parameters

   $stop  
[ Top ]



_openid_dh_xorsecret [line 300]

void _openid_dh_xorsecret( $shared, $secret)



Parameters

   $shared  
   $secret  
[ Top ]



_openid_encode_message [line 125]

void _openid_encode_message( $message)

Encode a message from _openid_create_message for HTTP Post



Parameters

   $message  
[ Top ]



_openid_fix_post [line 373]

void _openid_fix_post( &$post)

Fix PHP's habit of replacing '.' by '_' in posted data.



Parameters

   &$post  
[ Top ]



_openid_get_bytes [line 350]

void _openid_get_bytes( $num_bytes)



Parameters

   $num_bytes  
[ Top ]



_openid_hmac [line 224]

void _openid_hmac( $key, $text)



Parameters

   $key  
   $text  
[ Top ]



_openid_is_xri [line 61]

void _openid_is_xri( $identifier)

Determine if the given identifier is an XRI ID.



Parameters

   $identifier  
[ Top ]



_openid_link_href [line 177]

void _openid_link_href( $rel, $html)

Pull the href attribute out of an html link element.



Parameters

   $rel  
   $html  
[ Top ]



_openid_meta_httpequiv [line 190]

void _openid_meta_httpequiv( $equiv, $html)

Pull the http-equiv attribute out of an html meta element



Parameters

   $equiv  
   $html  
[ Top ]



_openid_nonce [line 165]

void _openid_nonce( )

Return a nonce value - formatted per OpenID spec.



[ Top ]



_openid_normalize [line 76]

void _openid_normalize( $identifier)

Normalize the given identifier as per spec.



Parameters

   $identifier  
[ Top ]



_openid_normalize_url [line 93]

void _openid_normalize_url( $url)



Parameters

   $url  
[ Top ]



_openid_normalize_xri [line 85]

void _openid_normalize_xri( $xri)



Parameters

   $xri  
[ Top ]



_openid_parse_message [line 147]

void _openid_parse_message( $message)

Convert a direct communication message into an associative array.



Parameters

   $message  
[ Top ]



_openid_sha1 [line 238]

void _openid_sha1( $text)



Parameters

   $text  
[ Top ]



_openid_signature [line 207]

void _openid_signature( $association $association, $message_array $message_array, $keys_to_sign $keys_to_sign)

Sign certain keys in a message



Parameters

$association   $association   - object loaded from openid_association or openid_server_association table
  • important fields are ->assoc_type and ->mac_key
$message_array   $message_array   - array of entire message about to be sent
$keys_to_sign   $keys_to_sign   - keys in the message to include in signature (without 'openid.' appended)
[ Top ]



Documentation generated on Thu, 12 Jun 2008 14:08:44 -0500 by phpDocumentor 1.4.1