Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
4
    Moodle is free software: you can redistribute it and/or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8
 
9
    Moodle is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
    GNU General Public License for more details.
13
 
14
    You should have received a copy of the GNU General Public License
15
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
}}
17
{{!
18
    @template auth_oauth2/idpresponse
19
 
20
    Render response returned from the oAuth IdP for
21
    supplied test user.
22
 
23
    Classes required for JS:
24
    * none
25
 
26
    Data attributes required for JS:
27
    * none
28
 
29
    Context variables required for this template:
30
    * pairs - array of key value pairs return from the oAuth IdP
31
      * name - the name field from the IdP for the field
32
      * value - the value of the field for the supplied test user
33
 
34
    Example context (json):
35
    {
36
        "pairs": [{
37
            "name": "firstname",
38
            "value": "Jane"
39
        },
40
        {
41
            "name": "lastname",
42
            "value": "Awesome"
43
        }]
44
    }
45
}}
46
 
47
<div class="container mb-3">
48
    <h3>{{#str}}userinfo, auth_oauth2{{/str}}</h3>
49
    <table class="table">
50
        <thead>
51
        <tr>
52
            <th scope="col">{{#str}}key, auth_oauth2{{/str}}</th>
53
            <th scope="col">{{#str}}value, auth_oauth2{{/str}}</th>
54
        </tr>
55
        </thead>
56
        <tbody>
57
        {{#pairs}}
58
            <tr>
59
                <td>{{name}}</td>
60
                <td>{{{value}}}</td>
61
            </tr>
62
        {{/pairs}}
63
        </tbody>
64
    </table>
65
</div>