/[drupal]/contributions/modules/services/auth/services_keyauth/services_keyauth.module
ViewVC logotype

Diff of /contributions/modules/services/auth/services_keyauth/services_keyauth.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.6.2.2, Sun Jun 28 22:33:08 2009 UTC revision 1.1.2.6.2.3, Wed Nov 4 21:37:01 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: services_keyauth.module,v 1.1.2.6.2.1 2009/06/10 17:23:43 marcingy Exp $  // $Id: services_keyauth.module,v 1.1.2.6.2.2 2009/06/28 22:33:08 marcingy Exp $
3  /**  /**
4   * @author Services Dev Team   * @author Services Dev Team
5   * @file   * @file
# Line 33  function services_keyauth_access() { Line 33  function services_keyauth_access() {
33   */   */
34  function services_keyauth_authentication_info() {  function services_keyauth_authentication_info() {
35    return array(    return array(
36      '#file' => 'services_keyauth.inc',      'file' => 'services_keyauth.inc',
37      '#title' => t('Key authentication'),      'title' => t('Key authentication'),
38      '#description' => t('The default key-based authentication'),      'description' => t('The default key-based authentication'),
39      'security_settings' => '_services_keyauth_security_settings',      'security_settings' => '_services_keyauth_security_settings',
40      'security_settings_validate' => '_services_keyauth_security_settings_validate',      'security_settings_validate' => '_services_keyauth_security_settings_validate',
41      'security_settings_submit' => '_services_keyauth_security_settings_submit',      'security_settings_submit' => '_services_keyauth_security_settings_submit',
# Line 94  function services_keyauth_menu() { Line 94  function services_keyauth_menu() {
94  }  }
95    
96  function services_get_hash($timestamp, $domain, $nonce, $method, $args) {  function services_get_hash($timestamp, $domain, $nonce, $method, $args) {
97    $hash_parameters = array($timestamp, $domain, $nonce, $method['#method']);    $hash_parameters = array($timestamp, $domain, $nonce, $method['method']);
98    foreach ($method['#args'] as $key => $arg) {    foreach ($method['args'] as $key => $arg) {
99      if ($arg['#signed'] == TRUE) {      if ($arg['signed'] == TRUE) {
100        if (is_numeric($args[$key]) || !empty($args[$key])) {        if (is_numeric($args[$key]) || !empty($args[$key])) {
101          if (is_array($args[$key]) || is_object($args[$key])){          if (is_array($args[$key]) || is_object($args[$key])) {
102            $hash_parameters[] = serialize($args[$key]);            $hash_parameters[] = serialize($args[$key]);
103          }          }
104          else{          else{

Legend:
Removed from v.1.1.2.6.2.2  
changed lines
  Added in v.1.1.2.6.2.3

  ViewVC Help
Powered by ViewVC 1.1.2