Dotclear

Changeset 2949


Ignore:
Timestamp:
02/18/11 13:09:55 (12 years ago)
Author:
JcDenis
Message:

oAuthManager 0.2-alpha2

  • Added oAuth 2.0 draft 10 support (first step)
  • Moved storage to the same class oAuthClientStore for oAuth 1 et 2
Location:
plugins/oAuthManager
Files:
2 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/oAuthManager/_define.php

    r2917 r2949  
    1717     /* Description*/         "Manage oAuth access for plugins and users", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.1', 
     19     /* Version */            '0.2-alpha2', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20110130 
     22     /* date */          #20110218 
    2323?> 
  • plugins/oAuthManager/_install.php

    r2917 r2949  
    4040          ->token('varchar',128,true,null) 
    4141          ->secret('varchar',128,true,null) 
     42          //->code('varchar',255,true,null) 
     43          ->more('text',0,true,null) 
    4244          ->mtime('timestamp',0,false,'now()') 
    4345          ->expiry('timestamp',0,true,null) 
  • plugins/oAuthManager/_prepend.php

    r2917 r2949  
    1616$__autoload['oAuthManager'] = dirname(__FILE__).'/inc/class.oauth.manager.php'; 
    1717$__autoload['oAuthClient'] = dirname(__FILE__).'/inc/class.oauth.client.php'; 
     18$__autoload['oAuthClientStore'] = dirname(__FILE__).'/inc/lib.oauth.client.store.php'; 
    1819# oAuth 1.0a libraries 
    1920$__autoload['oAuthClient10'] = dirname(__FILE__).'/inc/lib.oauth.client.1.0.php'; 
    20 $__autoload['oAuthClient10Store'] = dirname(__FILE__).'/inc/lib.oauth.client.1.0.store.php'; 
     21# oAuth 2.0 draft 10 librairies 
     22$__autoload['oAuthClient20'] = dirname(__FILE__).'/inc/lib.oauth.client.2.0.php'; 
    2123 
    2224# Use a generic script to deal with oAuth 1.0a 
     
    2527# as this script can be removed/changed at any time 
    2628require_once dirname(__FILE__).'/inc/OAuth/OAuth.php'; 
    27  
    2829?> 
  • plugins/oAuthManager/inc/OAuth/OAuth.php

    r2917 r2949  
    11<?php 
     2# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# This file is part of oAuthManager, a plugin for Dotclear 2. 
     4#  
     5# Copyright (c) 2009-2011 JC Denis and contributors 
     6# jcdenis@gdwd.com 
     7#  
     8# Licensed under the GPL version 2.0 license. 
     9# A copy of this license is available in LICENSE file or at 
     10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     11# -- END LICENSE BLOCK ------------------------------------ 
     12 
    213// vim: foldmethod=marker 
    314 
  • plugins/oAuthManager/inc/class.oauth.client.php

    r2917 r2949  
    11<?php 
     2# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# This file is part of oAuthManager, a plugin for Dotclear 2. 
     4#  
     5# Copyright (c) 2009-2011 JC Denis and contributors 
     6# jcdenis@gdwd.com 
     7#  
     8# Licensed under the GPL version 2.0 license. 
     9# A copy of this license is available in LICENSE file or at 
     10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     11# -- END LICENSE BLOCK ------------------------------------ 
     12 
    213if (!defined('DC_RC_PATH')){return;} 
    314 
  • plugins/oAuthManager/inc/class.oauth.manager.php

    r2917 r2949  
    5858          $strReq .= "WHERE C.uid > 0 "; //always true huhu 
    5959           
    60           if (!$this->core->auth->isSuperAdmin()) 
    61           { 
    62                $strReq .= "AND blog_id = '".$this->blog."' "; 
    63           } 
     60          $strReq .= $this->blog(); 
    6461           
    6562          if (!empty($params['sql'])) 
  • plugins/oAuthManager/inc/lib.oauth.client.1.0.php

    r2917 r2949  
    7979           
    8080          # storage 
    81           $this->store = new oAuthClient10Store($core); 
     81          $this->store = new oAuthClientStore($core); 
    8282           
    8383          # load start values 
  • plugins/oAuthManager/release.txt

    r2917 r2949  
     10.2-alpha2 20110218 
     2 * Added oAuth 2.0 draft 10 support (first step) 
     3 * Moved storage to the same class oAuthClientStore for oAuth 1 et 2 
     4 
    150.1 20110130 
    26 * First public release 
Note: See TracChangeset for help on using the changeset viewer.

Sites map