Ignore:
Timestamp:
09/07/12 12:39:59 (9 years ago)
Author:
pjkersha
Message:
  • set ndg and ndg.oauth as namespace packages for both client and server distributions
  • added examples area for oauth server
Location:
trunk/ndg_oauth/ndg_oauth_server
Files:
24 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ndg_oauth/ndg_oauth_server/development.ini

    r8057 r8080  
    111111# OAuth2 server configuration options - defaults are commented out. 
    112112#oauth2server.access_token_lifetime=86400 
    113 # Allowed values: myproxy (default) or bearer (which returns a UUID) 
    114 #oauth2server.access_token_type=myproxy 
     113# Allowed values: slcs (default) or bearer (which returns a UUID) 
     114#oauth2server.access_token_type=slcs 
    115115oauth2server.access_token_type=bearer 
    116116#oauth2server.authorization_grant_lifetime=600 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/__init__.py

    r8030 r8080  
     1"""NDG OAuth Server ndg namespace package for server code 
     2 
     3This is a setuptools namespace_package.  DO NOT place any other 
     4code in this file!  There is no guarantee that it will be installed 
     5with easy_install.  See: 
     6 
     7http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages 
     8 
     9... for details. 
     10""" 
     11__author__ = "P J Kershaw" 
     12__date__ = "09/07/12" 
     13__copyright__ = "(C) 2012 Science and Technology Facilities Council" 
     14__license__ = "BSD - see LICENSE file in top-level directory" 
     15__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     16__revision__ = '$Id$' 
     17 
     18__import__('pkg_resources').declare_namespace(__name__) 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/__init__.py

    r8030 r8080  
     1"""NDG OAuth Server ndg.oauth namespace package for server code 
     2 
     3This is a setuptools namespace_package.  DO NOT place any other 
     4code in this file!  There is no guarantee that it will be installed 
     5with easy_install.  See: 
     6 
     7http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages 
     8 
     9... for details. 
     10""" 
     11__author__ = "P J Kershaw" 
     12__date__ = "09/07/12" 
     13__copyright__ = "(C) 2012 Science and Technology Facilities Council" 
     14__license__ = "BSD - see LICENSE file in top-level directory" 
     15__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     16__revision__ = '$Id$' 
     17 
     18__import__('pkg_resources').declare_namespace(__name__) 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi/oauth2_server.py

    r8075 r8080  
    1616from webob import Request 
    1717 
    18 from ndg.oauth.server.lib.access_token.bearer_token_generator import BearerTokenGenerator 
    19 from ndg.oauth.server.lib.access_token.myproxy_cert_token_generator import MyProxyCertTokenGenerator 
    20 from ndg.oauth.server.lib.authenticate.certificate_client_authenticator import CertificateClientAuthenticator 
    21 from ndg.oauth.server.lib.authenticate.noop_client_authenticator import NoopClientAuthenticator 
     18from ndg.oauth.server.lib.access_token.bearer_token_generator import \ 
     19    BearerTokenGenerator 
     20from ndg.oauth.server.lib.access_token.myproxy_cert_token_generator \ 
     21    import MyProxyCertTokenGenerator 
     22from ndg.oauth.server.lib.authenticate.certificate_client_authenticator \ 
     23    import CertificateClientAuthenticator 
     24from ndg.oauth.server.lib.authenticate.noop_client_authenticator import \ 
     25    NoopClientAuthenticator 
    2226from ndg.oauth.server.lib.authorization_server import AuthorizationServer 
    23 from ndg.oauth.server.lib.authorize.authorizer_storing_identifier import AuthorizerStoringIdentifier 
    24 from ndg.oauth.server.lib.resource_request.myproxy_cert_request import MyproxyCertRequest 
     27from ndg.oauth.server.lib.authorize.authorizer_storing_identifier import \ 
     28    AuthorizerStoringIdentifier 
     29from ndg.oauth.server.lib.resource_request.myproxy_cert_request import \ 
     30    MyproxyCertRequest 
    2531 
    2632log = logging.getLogger(__name__) 
Note: See TracChangeset for help on using the changeset viewer.