-
Guillaume ROUSSE authored
This allows to override web templates only, without forcing to duplicated mail templates, for instance.
Guillaume ROUSSE authoredThis allows to override web templates only, without forcing to duplicated mail templates, for instance.
create_accounts.tt2.html 4.88 KiB
[% WRAPPER index.tt2.html %]
<div class="row">
<div class="small-12 columns">
<p class="callout alert-callout-border success text-center">
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider with entityID <strong>[_1]</strong> has been validated!", entityid) %]
</p>
</div>
</div>
<h2>[% lh.maketext("Test accounts created") %]</h2>
<p>
[% lh.maketext("You can now use these test accounts to login at your federated service.") %]
[% lh.maketext("To do so, select <strong>[_1]</strong> when choosing an identity provider.", idp_displayname) %]
</p>
<p><a class="button" href="[% conf.app_url %]?action=download_accounts&entityid=[% entityid %]&token=[% token %]&key=[% key %]">[% lh.maketext("Download in CSV format") %]</a></p>
<div class="accounts row">
[% FOREACH account IN accounts %]
<div class="small-12 medium-6 large-4 columns">
<div class="account">
<table>
<caption>[% lh.maketext("Account profile: [_1]", account.profile()) %]</caption>
<tr>
<td><strong>[% lh.maketext("user name:") %]</strong></td>
<td>user[% account.id() %]</td>
</tr>
<tr>
<td><strong>[% lh.maketext("password:") %]</strong></td>
<td>[% account.password() %]</td>
</tr>
<tr>
<td colspan="2">
<strong>[% lh.maketext("comment:") %]</strong>
<div class="comment">[% account.comment() %]</div>
</td>
</tr>
<tr>
<td colspan="2" class="text-center" >
<button data-open="account_details_[% account.id() %]" class="button show_account_details" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button>
</td>
</tr>
</table>
</div>
</div>
<div class="reveal" data-reveal id="account_details_[% account.id() %]">
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
<h3>[% lh.maketext("List of user attributes") %]</h3>
<p>
[% lh.maketext("Below is the list of user attributes associated to this test account.") %]
[% lh.maketext("After a successfull authentication process these attributes are transmited via the SAML protocol from eduGAIN Access Check Identity Provider to your Service Provider.") %]
</p>
<div>
<table>
<caption>[% lh.maketext("List of user attributes") %]</caption>
[% FOREACH attribute IN [ 'cn', 'displayName', 'givenName', 'sn', 'mail', 'schacHomeOrganization', 'schacHomeOrganizationType', 'eduPersonPrincipalName' ] %]
<tr>
<th>[% attribute %]</th><td>[% account.$attribute() %]</td>
</tr>
[% END %]
[% FOREACH attribute IN [ 'eduPersonAffiliation', 'eduPersonScopedAffiliation' ] %]
<tr>
<th>[% attribute %]</th><td>[% account.$attribute().join(', ') %]</td>
</tr>
[% END %]
<tr>
<th>eduPersonTargetedID:</th><td><i>[% lh.maketext("value dynamically generated by the SP") %]</i></td>
</tr>
</table>
</div>
<div class="callout alert-callout-border info">
<p>[% lh.maketext("If you need a customized test account with additional user attributes, you should contact <a href=\"mailto:[_1]\">[_1]</a>.", app.support_email) %]</p>
</div>
<div>
[% lh.maketext("(1) eduPersonAffiliation and eduPersonScoppedAffilisation attributes are assigned quite differently from federation to federation.") %]
[% lh.maketext("<a href=\"[_1]\">This usage comparison of eduPersonAffiliation accross different countries</a> discusses these differences.", "http://tnc2010.terena.org/files/ePSA%20comparison%20v0%2006.ppt") %]
[% lh.maketext("Therefore its values should be handled with great care.") %]
</div>
</div>
[% END %]
</div>
<div class="row">
<div class="callout alert-callout-border warning">
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your eduGAIN-enabled Service Provider with entityID <strong>[_2]</strong>.", days, entityid) %]</p>
</div>
</div>
<div class="row">
<div class="callout alert-callout-border primary text-center">
<strong>[% lh.maketext("Thank you for using eduGAIN Access Check") %]</strong>
</div>
</div>
<p class="text-center"><a href="[% app.url %]?action=start" class="button">[% lh.maketext("Test another service") %]</a></p>
[% END %]