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

Procedural File: login.php

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



Page Details:

OpenID login method

The OpenID login method relies on authentication servers providing a public URL that can confirm the identity of a person, thus avoiding the spread use of password transmissions over non-secure lines (for Dokeos, it is a good way of avoiding password theft)




Tags:

filesource:  Source Code for this file


Includes:

require_once('openid.lib.php') [line 14]
require_once('openid.conf.php') [line 13]
Initialisation

require_once('xrds.lib.php') [line 15]






openid_association [line 184]

$assoc_handle openid_association( $op_endpoint $op_endpoint)

Attempt to create a shared secret with the OpenID Provider.



Tags:

return:  The association handle.


Parameters

$op_endpoint   $op_endpoint   URL of the OpenID Provider endpoint.
[ Top ]



openid_association_request [line 235]

void openid_association_request( $public)

?



Parameters

   $public  
[ Top ]



openid_authentication_request [line 256]

void openid_authentication_request( $claimed_id, $identity, [ $return_to = ''], [ $assoc_handle = ''], [ $version = 2])



Parameters

   $claimed_id  
   $identity  
   $return_to  
   $assoc_handle  
   $version  
[ Top ]



openid_begin [line 32]

void openid_begin( $claimed_id $claimed_id, [$return_to $return_to = ''], [ $form_values = array()])

The initial step of OpenID authentication responsible for the following:
  • Perform discovery on the claimed OpenID.


  • If possible, create an association with the Provider's endpoint.
  • Create the authentication request.
  • Perform the appropriate redirect.




Parameters

$claimed_id   $claimed_id   The OpenID to authenticate
$return_to   $return_to   The endpoint to return to from the OpenID Provider
   $form_values  
[ Top ]



openid_complete [line 83]

$response openid_complete( $response $response)

Completes OpenID authentication by validating returned data from the OpenID Provider.



Tags:

return:  Response values for further processing with $response['status'] set to one of 'success', 'failed' or 'cancel'.


Parameters

$response   $response   Array of returned from the OpenID provider (typically $_REQUEST).
[ Top ]



openid_discovery [line 116]

Array openid_discovery( $claimed_id $claimed_id)

Perform discovery on a claimed ID to determine the OpenID provider endpoint.



Tags:

return:  of services discovered (including OpenID version, endpoint URI, etc).


Parameters

$claimed_id   $claimed_id   The OpenID URL to perform discovery on.
[ Top ]



openid_form [line 17]

void openid_form( )



[ Top ]



openid_http_request [line 337]

void openid_http_request( $url, [ $headers = array()], [ $method = 'GET'], [ $data = NULL], [ $retry = 3])

Make a HTTP request - This function has been copied straight over from Drupal 6 code (drupal_http_request)



Parameters

   $url  
   $headers  
   $method  
   $data  
   $retry  
[ Top ]



openid_verify_assertion [line 295]

boolean openid_verify_assertion( $op_endpoint $op_endpoint, $response $response)

Attempt to verify the response received from the OpenID Provider.



Parameters

$op_endpoint   $op_endpoint   The OpenID Provider URL.
$response   $response   Array of repsonse values from the provider.
[ Top ]



Documentation generated on Thu, 12 Jun 2008 14:00:50 -0500 by phpDocumentor 1.4.1