Ignore:
Timestamp:
07/06/12 14:29:58 (9 years ago)
Author:
pjkersha
Message:

Working test config with bearer type pattern

  • modified 'myproxy' access token type to more generically named 'slcs' = Short Lived Credential Service
  • fixed call to build_opener following change to interface for this in ndg_httpsclient
Location:
trunk/ndg_oauth/ndg_oauth_server
Files:
3 edited

Legend:

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

    r8057 r8075  
    1010#id=477bfc8c-a739-45b3-a63b-5b1662cc12d7 
    1111type=confidential 
    12 redirect_uris=http://ice.badc.rl.ac.uk:5001/client/redirect_target 
    13 authentication_data=/O=STFC/OU=BADC/OU=simpleCA-ice.badc.rl.ac.uk/OU=badc.rl.ac.uk/CN=test1.client 
     12redirect_uris=http://localhost:5001/client/redirect_target 
     13authentication_data=/OU=Security/CN=localhost/O=NDG 
    1414 
    1515[client:test2] 
    16 name=WPS on Ice 
     16name=test2 client 
    1717id=22 
    1818#id=691ad8cc-293c-4fbe-b8eb-980fcd621157 
    1919type=confidential 
    20 redirect_uris=http://ice.badc.rl.ac.uk:5002/oauth2/oauth_redirect,http://ice.badc.rl.ac.uk:5005/oauth2/oauth_redirect 
    21 authentication_data=/O=STFC/OU=BADC/OU=simpleCA-ice.badc.rl.ac.uk/OU=badc.rl.ac.uk/CN=test.client 
     20redirect_uris=http://localhost:5002/oauth2/oauth_redirect,http://localhost:5005/oauth2/oauth_redirect 
     21authentication_data=/OU=Security/CN=localhost/O=NDG 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi/oauth2_server.py

    r8057 r8075  
    5757    propertyDefaults = { 
    5858        ACCESS_TOKEN_LIFETIME_OPTION: 86400, 
    59         ACCESS_TOKEN_TYPE_OPTION: 'myproxy', 
     59        ACCESS_TOKEN_TYPE_OPTION: 'slcs', 
    6060        AUTHORIZATION_GRANT_LIFETIME_OPTION: 600, 
    6161        BASE_URL_PATH_OPTION: '', 
     
    100100            # Simple bearer token configuration. 
    101101            access_token_generator = BearerTokenGenerator(self.access_token_lifetime_seconds, self.access_token_type) 
    102         elif self.access_token_type == 'myproxy': 
     102        elif self.access_token_type == 'slcs': 
    103103            # Configure authorization server to use MyProxy certificates as access tokens. 
    104104            access_token_generator = MyProxyCertTokenGenerator( 
  • trunk/ndg_oauth/ndg_oauth_server/repoze_who.ini

    r8074 r8075  
    6060plugins = 
    6161      auth_tkt 
    62 #      htpasswd 
    63       sqlusers 
     62      htpasswd 
     63#      sqlusers 
    6464 
    6565[challengers] 
Note: See TracChangeset for help on using the changeset viewer.