Changeset 8106


Ignore:
Timestamp:
23/08/12 10:28:59 (8 years ago)
Author:
pjkersha
Message:

Working version with cert based token and MyProxy? backend

Location:
trunk/ndg_oauth
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/ndg_oauth/ndg_oauth_client/ndg/oauth/client/examples/wsgi/wsgi_test_app.py

    r8057 r8106  
    3434 
    3535    def default(self, environ, start_response): 
    36         response = "<h2>WSGI Test Application</h2>" 
     36        response = "<h2>ndg_oauth WSGI Test Application</h2>" 
    3737        start_response('200 OK',  
    3838                       [('Content-type', 'text/html'), 
     
    4242    def cert(self, environ, start_response): 
    4343        cert = environ.get(self.TOKEN_ENV_KEYNAME) 
    44         response = ["<h2>WSGI Test Application - Get Certificate</h2>"] 
     44        response = ["<h2>ndg_oauth WSGI Test Application - Get Certificate" 
     45                    "</h2>"] 
    4546        if cert: 
    4647            for c in cert: 
     
    5152        start_response('200 OK',  
    5253                       [('Content-type', 'text/html'), 
    53                         ('Content-length', str(sum([len(r) for r in response])))]) 
     54                        ('Content-length',  
     55                         str(sum([len(r) for r in response])))]) 
    5456        return response 
    5557 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/examples/slcs/slcs_oauth_server.ini

    r8105 r8106  
    1818host = 0.0.0.0 
    1919port = 5000 
    20 ssl_pem = %(here)s/host.pem 
     20ssl_pem = %(here)s/pki/host.pem 
    2121 
    2222[pipeline:main] 
     
    124124oauth2server.client_register=%(here)s/client_register.ini 
    125125#oauth2server.myproxy_client_key=myproxy.server.wsgi.middleware.MyProxyClientMiddleware.myProxyClient 
    126 oauth2server.myproxy_global_password=i93rRugz 
     126oauth2server.myproxy_global_password=testpassword 
    127127#oauth2server.session_key_name=beaker.session.oauth2server 
    128128#oauth2server.user_identifier_key=REMOTE_USER 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi/oauth2_server.py

    r8080 r8106  
    289289        """ 
    290290        log.debug("access_token called") 
    291         (response, error_status, error_description) = self._authorizationServer.access_token(req) 
     291        (response,  
     292         error_status,  
     293         error_description) = self._authorizationServer.access_token(req) 
    292294        if response is None: 
    293295            response = '' 
Note: See TracChangeset for help on using the changeset viewer.