Skip to content
Snippets Groups Projects
validate_token.tt2.html 3.93 KiB
<div class="row">

<h2>Test Accounts</h2>

<div class="alert-box success radius">
<strong>Success:</strong> Your identity as administrator of the Service Provider with entityID <strong>[% sp_entityid %]</strong> could successfully be validated!
</div>

<h3>The following test accounts with different profiles were created for you:</h3>

	<p>You can now use these test accounts to login at your federated service.<br/>
<strong>To do so, select the "[% conf.idp_displayname %]" when choosing an organisation to login at.</strong></p>
	<p><strong>Please keep a record of the above user names and passwords</strong> because currently there is no mecanism to retrieve the above credentials once you close this page. If you forget the username and passowrds, you can however request new test accounts.</p>

<div class="alert-box warning radius">
	<p>Note that these test accounts will automatically expire in [% conf.accounts_validity_period %] days and that they can only be used to test federated login to your eduGAIN-enabled Service Provider with entityID <strong>[% sp_entityid %]</strong>.</p>
</div>

</div>

<div class="accounts_profile">

    [% FOREACH account IN test_accounts %]
      [% PROCESS "${account.get('account_profile')}.tt2" %]
		<div class="tbl">
			<table>
				<caption>Account profile: [% account_profile.type %]</caption>
				<tr>
					<th>user name:</th><td> user[% account.get('id') %]</td>
				</tr>
				<tr>
					<th>user password:</th><td>[% account.get('user_password') %]</td>
				</tr>
				<tr>
					<td colspan="2"><strong>comment:</strong><div><p>[% account_profile.comment %]</p></div></td>
				</tr>
				<tr>
				<td colspan=2 class="align-center" ><button data-reveal-id="account_details_[% account.get('id') %]" class="show_account_details" id="show_account_details_[% account.get('id') %]">show account details</button></td> 
				</tr>
			</table>
		</div>
        <div class="accounts_profile reveal-modal" data-reveal id="account_details_[% account.get('id') %]"> <!-- old version : class="account_details"-->
            <h3>List of user attributes associated</h3>
            <p>Below is the list of user attributes associated to this test account. After a successfull authentication process these attributes are transmited
            via the SAML protocol from [% conf.app_name %] Identity Provider to your Service Provider.</p>
<div>
			<table>
				<caption>List of user attributes</caption>
            [% FOREACH attribute IN account_profile.pairs -%]
              [% NEXT IF attribute.key.match('^(type|comment)$') %]
              
              [% IF attribute.value.isa('SCALAR') -%]
				<tr>
					<th>[% attribute.key %][% IF attribute.key == 'eduPersonAffiliation' || attribute.key == 'eduPersonScopedAffiliation' %](1) [% END %]:</th><td> [% attribute.value %]</td>
				</tr>
			  [% ELSE -%]
				<tr>
					<th>[% attribute.key %][% IF attribute.key == 'eduPersonAffiliation' || attribute.key == 'eduPersonScopedAffiliation' %](1) [% END %]:</th><td> [% attribute.value.join(",") %]</td>
				</tr>
			  [% END %]
            [% END %]
            <tr><th>eduPersonTargetedID:</th><td><i>value dynamically generated by the SP</i></td></tr>
			</table>
	</div>

            <div class="alert-box info radius">If you need a customized test account with additionnal user attributes, you should contact <a href="mailto:[% conf.support_email %]">[% conf.support_email %]</a>.</div>
            <div>(1) eduPersonAffiliation and eduPersonScoppedAffilisation attributes are assigned quite differently from federation to federation. <a href="https://www.terena.org/activities/refeds/docs/ePSAcomparison_0_13.pdf">This usage comparison of eduPersonAffiliation accross different countries</a> discusses these differences. Therefore its values should be handled with great care. </div>
    
			<a class="close-reveal-modal">&#215;</a>
        </div>
        </dl>

    [% END %]
    

</div>

<p class="align-center"><Strong>Thank you for using the [% conf.app_name %]</strong></p>