Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.Moodle is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template auth_oauth2/idpsRender available oauth2 idps for testing.Classes required for JS:* noneData attributes required for JS:* noneContext variables required for this template:* idps - array of oAuth IdP objects* name - the display name of the IdP* url - the url of the oAuth test endpoint* iconurl - the icon of the oAuth IdPExample context (json):{"idps": [{"name": "Microsoft","url": "http:\/\/localhost\/auth\/oauth2\/test.php?id=2&sesskey=4js6afElZh","iconurl": "https:\/\/www.microsoft.com\/favicon.ico"}]}}}<div class="container mb-3"><div class="potentialidps-header row"><h3>{{#str}}testidplogin, auth_oauth2{{/str}}</h3></div><div class="potentialidps row"><div class="potentialidplist">{{#idps}}<div class="potentialidp mb-2"><a class="btn btn-secondary btn-block" href="{{{url}}}" title="{{name}}">{{#iconurl}}<img src="{{{iconurl}}}" alt="{{name}}" width="24" height="24" class="mr-1"/>{{/iconurl}}{{name}}</a></div>{{/idps}}</div></div></div>