Skip to content
Snippets Groups Projects
Commit 08465c5f authored by renater.salaun's avatar renater.salaun
Browse files

Added homepage

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@55 047e039d-479c-447e-8a29-aa6bf4a09bab
parent 27e435e7
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ my %actions = ('select_sp' => {'title_en' => 'Select your Service Provider' }
'account_wizard' => {'title_en' => 'Select your Service Provider' },
'generate_token' => {'title_en' => 'Generate an authentication token'},
'validate_token' => {'title_en' => 'Validate an authentication token'},
'home' => {'title_en' => 'eduGAIN Test Identity Provider'},
);
## Gives writes for the group
......@@ -111,7 +112,7 @@ sub new {
}else {
## Default action
&IdPAccountManager::Tools::do_log('info', "Default action");
$request->{'action'} = 'account_wizard';
$request->{'action'} = 'home';
}
bless $request, $pkg;
......@@ -401,4 +402,10 @@ sub req_validate_token {
return 1;
}
## Return the homepage of the service
sub req_home {
my $self = shift;
&IdPAccountManager::Tools::do_log('info', "");
return 1;
}
......@@ -34,6 +34,13 @@
[% CATCH %]
An error occured
[% END %]
[% ELSIF action == 'home' %]
[% TRY %]
[% PROCESS 'templates/web/home.tt2.html' %]
[% CATCH %]
An error occured
[% END %]
[% ELSE %]
Error: unknown action
......
<script type="text/javascript">
$(function() {
$('#start_testing').on('click',function() {
window.location.href='[% conf.app_url %]?action=account_wizard';
});
});
</script>
<div>
<h3>eduGAIN Test Identity Provider?</h3>
The eduGAIN Test Identity Provider allows administrators of a Service
Provider (SP) registered in <a href="http://www.geant.net/service/eduGAIN/Pages/home.aspx">eduGAIN</a> to create test
accounts with different profiles to validate the behaviour and test
federated login. The test accounts can only be used to access own services.
<br/><br/>
To start testing your own eduGAIN service, start by selecting the
Service Provider you are administrator for.<br/>
<button id="start_testing">Start testing your eduGAIN service</button>
<br/><br/>
<h3>How is it ensured that users can only test their own service?</h3>
The eduGAIN Test Identity Provider exclusively allows creating test
accounts only to users who can receive challenge emails for email
addresses listed in the eduGAIN metadata for a particualar Service Provider.
The test accounts can only be used to access one single service for
which a user proofed that he is administrator.
</div>
\ No newline at end of file
......@@ -45,7 +45,7 @@ function hide(div) {
oDiv.style.display = "none";
}
jQuery(document).ready(function($){
jQuery(function($){
$.widget( "custom.combobox", {
_create: function() {
......@@ -174,7 +174,7 @@ jQuery(document).ready(function($){
this.element.show();
}
});
})( jQuery );
});
//-->
</SCRIPT>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment