Changeset 907


Ignore:
Timestamp:
Oct 4, 2010, 11:20:46 AM (6 years ago)
Author:
tabma
Message:
  • added OAuth-link to index page of GSCF
Location:
trunk/grails-app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r905 r907  
    157157
    158158oauth {
    159         provider_name {
     159        myExperiment {
    160160                requestTokenUrl = 'http://www.myexperiment.org/oauth/request_token'
    161161                accessTokenUrl = 'http://www.myexperiment.org/oauth/access_token'
  • trunk/grails-app/controllers/HomeController.groovy

    r359 r907  
    1919       [ studyCount: dbnp.studycapturing.Study.count() ]
    2020    }
     21   
    2122}
  • trunk/grails-app/views/home/index.gsp

    r730 r907  
    1818    Choose from the upper bar whether you would like to create, view or search studies
    1919
     20    <g:oauthLink consumer='myExperiment'
     21             returnTo="[controller: 'Home', action: 'index']">Authorize</g:oauthLink>
     22
     23    <g:hasOauthError>
     24     <div class="errors">
     25           <g:renderOauthError />
     26     </div>
     27    <g:hasOAuthError/>
     28
    2029  </body>
    2130</html>
Note: See TracChangeset for help on using the changeset viewer.