Ignore:
Timestamp:
Apr 25, 2012, 10:42:52 PM (10 years ago)
Author:
work@…
Message:
  • changed application wide secret into a user specific api key which is automatically generated when a user is created. The key is available in the user's profile or through the user administration pages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/userRegistration/profile.gsp

    r2084 r2225  
    44        <meta name="layout" content="main"/>
    55        <title>User profile</title>
     6    <link rel="stylesheet" href="${resource(dir: 'css', file: 'tipTip.css')}"/>
     7    <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.tipTip.minified.js')}"></script>
     8    <script type="text/javascript">
     9        $(document).ready(function() {
     10            $(".tooltip").tipTip();
     11        });
     12    </script>
    613</head>
    714
     
    2229                                <td>${user.organization}</td>
    2330                        </tr>
    24                         <sec:ifAllGranted roles="ROLE_ADMIN">
     31            <tr>
     32                <td>API key</td>
     33                <td valign="top" class="value">
     34                    <g:textField disabled="disabled" name="secret" value="${user.apiKey}" style="width:250px" />
     35                    <img src="${fam.icon(name: 'help')}" class="tooltip" title="in order to programmatically interface with gscf, you need the api key to communicate with the api. Refer to the api documentation at ${createLink(controller:'api')} for more information about how to use the api and the api key." />
     36                </td>
     37            </tr>
     38            <sec:ifAllGranted roles="ROLE_ADMIN">
    2539                        <tr>
    2640                                <td>Administrator</td>
     
    4660                                        <tbody>
    4761
    48                                         <tr class="prop">
     62                    <tr class="prop">
     63                        <td valign="top" class="name">API Key</td>
     64                        <td valign="top" class="value">
     65                            <g:textField disabled="disabled" name="secret" value="${user.apiKey}" style="width:250px" />
     66                            <img src="${fam.icon(name: 'help')}" class="tooltip" title="in order to programmatically interface with gscf, you need the api key to communicate with the api. Refer to the api documentation at ${createLink(controller:'api')} for more information about how to use the api and the api key." />
     67                        </td>
     68                    </tr>
     69                    <tr class="prop">
    4970                                                <td valign="top" class="name">
    5071                                                        <label for="username">Username</label>
Note: See TracChangeset for help on using the changeset viewer.