Show
Ignore:
Timestamp:
05-10-10 11:32:26 (4 years ago)
Author:
tabma
Message:

- Sandbox update to OAuth

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/SandboxController.groovy

    r925 r926  
    5454 
    5555        def oauth = {             
    56             def response = oauthService.accessResource(url: 'http://www.myexperiment.org/whoami.xml', consumer: 'myExperiment', 
    57             token:[key: session.oauthToken.key, secret: session.oauthToken.secret], method: 'GET') 
     56            def secret = session.oauthToken.secret 
     57            def response = oauthService.accessResource('http://www.myexperiment.org/whoami.xml', 'myExperiment', 
     58                           [key: session.oauthToken.key, secret: session.oauthToken.secret], 'GET') 
     59             
     60            render ("Calling whoami from myExperiment [key:" +  session.oauthToken.key + ", secret:"+ session.oauthToken.secret+"]") 
    5861 
    59             render ("Calling whoami from myExperiment [key:" + key + ", secret:"+secret+"]") 
    6062            render ("Response: " + response) 
    6163