Changeset 8123


Ignore:
Timestamp:
24/08/12 16:23:04 (8 years ago)
Author:
pjkersha
Message:

0.3.0 Release

  • Added READMEs and updated setup.py doc
Location:
trunk/ndg_oauth
Files:
4 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/ndg_oauth/ndg_oauth_client

    • Property svn:ignore set to
      dist
      ndg_oauth_client.egg-info
  • trunk/ndg_oauth/ndg_oauth_client/ndg/oauth/client/examples/bearer_tok/README

    r8114 r8123  
    11Example OAuth 2.0 bearer token client app 
     2 
     3$ python bearer_tok_client_app_serve.py 
     4 
     5Open a browser at http://localhost:5002/token to test.  Clear out cookies to 
     6reset between test runs. 
  • trunk/ndg_oauth/ndg_oauth_client/setup.cfg

    r8030 r8123  
    11[egg_info] 
    2 tag_svn_revision = true 
     2tag_svn_revision = false 
  • trunk/ndg_oauth/ndg_oauth_client/setup.py

    r8030 r8123  
    1616This is an OAuth 2.0 client library and WSGI middleware filter. 
    1717 
    18 Its intended use is to make requests to the NDG OAuth server, which returns as 
    19 access tokens certificates obtained from a MyProxy server. 
     18It supports simple string-based bearer token and a custom extension to enable  
     19the use of X.509 certificates as tokens.  The latter has been added to enable 
     20a SLCS (Short-lived Credential Service) to issue delegated X.509-based  
     21credentials using OAuth. 
    2022 
    2123ndg.oauth.client.lib.oauth2client:Oauth2Client is a client that calls a 
    2224specified callable with an access token obtained from a configured OAuth server. 
    2325ndg.oauth.client.lib.oauth2_myproxy_client:Oauth2MyProxyClient extends this to 
    24 handle key creation for obtaining MyProxy certificates. 
     26handle key creation for obtaining X.509 certificates. 
    2527 
    2628The filter ndg.oauth.client.wsgi.oauth2_client:Oauth2ClientMiddleware uses 
     
    3133Prerequisites 
    3234============= 
    33 This has been developed and tested for Python 2.6. 
     35This has been developed and tested for Python 2.6 and 2.7. 
    3436 
    3537Installation 
     
    3941Configuration 
    4042============= 
    41 Examples of configuration files for WSGI stacks are: 
    42 test_app.ini: 
    43   This configures a simple test application that simply displays the key and 
    44   certificate. 
    45 get_url_app_proxy.ini: 
    46   This is a more complex example that uses the NDG Security proxy. The 
    47   application makes a request to a configured URL using the security proxy. The 
    48   proxy uses a key/certificate pair obtained using NDG OAuth to authenticate the 
    49   request. 
     43Examples are contained in the examples/ sub-folder: 
     44 
     45bearer_tok/: 
     46  This configures a simple test application that uses string based tokens. 
     47slcs/: 
     48  This is a more complex and specialised example that issues X.509 certificate- 
     49  based tokens as part of a Short-lived Credential Service.  The corresponding 
     50  authorisation server available from the ndg.oauth server package requires  
     51  access to a specially configured MyProxyCA service ( 
     52  http://grid.ncsa.illinois.edu/myproxy/ca/) configured with a custom PAM to  
     53  allow issue of credentials. See:  
     54  http://ndg-security.ceda.ac.uk/browser/trunk/MashMyData/pam_credential_translation 
     55   
     56The examples should be used in conjunction with the ndg.oauth server package. 
    5057""" 
    5158 
    5259setup( 
    5360    name =                      'ndg_oauth_client', 
    54     version =                   '0.2.0', 
     61    version =                   '0.3.0', 
    5562    description =               'OAuth 2.0 client', 
    5663    author =                    'R. B. Wilkinson', 
    57     maintainer =                'Philip Kershaw', 
     64    maintainer =                    'Philip Kershaw', 
    5865    maintainer_email =          'Philip.Kershaw@stfc.ac.uk', 
    5966    #url ='', 
  • trunk/ndg_oauth/ndg_oauth_server

    • Property svn:ignore
      •  

        old new  
        11authn 
         2dist 
         3ndg_oauth_server.egg-info 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/examples/README

    r8109 r8123  
    33ini file which sets the combination of middleware and config settings needed. 
    44 
    5 ceda/ -             standard oauth usage 
     5bearer_tok/ -       uses string-based bearer tokens 
    66 
    77slcs/ -             short-lived credential service returns an X.509 cert as  
    88                    token.  It uses MyProxy as a backend service to issue certs.   
    9                     A test MyProxyCA service is needed for this configured with  
    10                     a custom PAM to allow of a global password. See:  
     9                    A test MyProxyCA service (see  
     10                    http://grid.ncsa.illinois.edu/myproxy/ca/) is needed for  
     11                    this configured with a custom PAM to allow of a global 
     12                    password. See:  
    1113                    http://ndg-security.ceda.ac.uk/browser/trunk/MashMyData/pam_credential_translation 
    1214 
    1315shared_config/ -    contains config files used by all example configurations 
     16 
     17These examples should be used with their equivalent client apps in  
     18ndg.oauth.client.examples 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/examples/slcs/slcs_server_app.ini

    r8121 r8123  
    2727           OAuth2Authz 
    2828           OAuth2ServerFilterApp 
    29 #           OAuth2Server 
    3029 
    3130# This filter sets up a server side session linked to a cookie.  The session 
  • trunk/ndg_oauth/ndg_oauth_server/setup.cfg

    r8030 r8123  
    11[egg_info] 
    22#tag_build = dev 
    3 tag_svn_revision = true 
     3tag_svn_revision = false 
  • trunk/ndg_oauth/ndg_oauth_server/setup.py

    r8030 r8123  
    1616This is an OAuth 2.0 server library and WSGI middleware filter. 
    1717 
     18It supports simple string-based bearer token and a custom extension to enable  
     19the use of X.509 certificates as tokens.  The latter has been added for a 
     20specialised use case to enable a SLCS (Short-lived Credential Service) to issue  
     21delegated X.509-based credentials with OAuth. 
     22 
    1823Prerequisites 
    1924============= 
    20 This has been developed and tested for Python 2.6. 
     25This has been developed and tested for Python 2.6 and 2.7. 
    2126 
    2227Installation 
     
    2631Configuration 
    2732============= 
    28 An example of configuration is provided in the file development.ini. This 
    29 configures the components needed to authenticate users, obtain user 
    30 authorisation for an OAuth client and obtain a certificate to use as an access 
    31 token using MyProxyClient. 
     33Examples are contained in the examples/ sub-folder: 
     34 
     35bearer_tok/: 
     36  This configures a simple test application that uses string based tokens. 
     37slcs/: 
     38  This is a more complex and specialised example that issues X.509 certificate- 
     39  based tokens as part of a Short-lived Credential Service.  The authorisation 
     40  server requires access to a specially configured MyProxyCA service ( 
     41  http://grid.ncsa.illinois.edu/myproxy/ca/) configured with a custom PAM to  
     42  allow issue of credentials. See:  
     43  http://ndg-security.ceda.ac.uk/browser/trunk/MashMyData/pam_credential_translation 
     44   
     45The examples should be used in conjunction with the ndg.oauth client package. 
    3246""" 
    3347 
    3448setup( 
    3549    name =                      'ndg_oauth_server', 
    36     version =                   '0.2.0', 
    37     description =               'OAuth 2.0 server providing MyProxy certificates as access tokens', 
     50    version =                   '0.3.0', 
     51    description =               'OAuth 2.0 server providing MyProxy ' 
     52                                'certificates as access tokens', 
    3853    long_description =          _long_description, 
    3954    author =                    'R. B. Wilkinson', 
    40     maintainer =                'Philip Kershaw', 
     55    maintainer =                    'Philip Kershaw', 
    4156    maintainer_email =          'Philip.Kershaw@stfc.ac.uk', 
    4257    #url ='', 
     
    4762        "WebOb", 
    4863        "repoze.who", 
    49         "MyProxyWebService", 
    5064        "Genshi", 
    5165    ], 
    52     packages =find_packages(), 
    53     zip_safe =False, 
     66    extras_require = {'slcs_support': 'MyProxyClient'}, 
     67    packages = find_packages(), 
     68    zip_safe = False, 
    5469) 
Note: See TracChangeset for help on using the changeset viewer.