Display a link to go back to SP on IDP login page (#140)
This commit is contained in:
parent
6421a38443
commit
33403f3396
@ -166,6 +166,7 @@ else {
|
|||||||
DISPLAY_FORM => 1,
|
DISPLAY_FORM => 1,
|
||||||
MAIL_URL => $portal->{mailUrl},
|
MAIL_URL => $portal->{mailUrl},
|
||||||
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
||||||
|
LOGIN_INFO => $portal->loginInfo(),
|
||||||
);
|
);
|
||||||
|
|
||||||
# Adapt template if password policy error
|
# Adapt template if password policy error
|
||||||
|
@ -11,6 +11,13 @@
|
|||||||
<p>
|
<p>
|
||||||
<lang en="This space allow you to open a SSO session. This will help you to securely access to all applications authorized by your profil." fr="Cet espace vous permet d'ouvrir une session SSO. Celle-ci vous aidera à accéder de manière totalement sécurisée à l'ensemble des applications autorisées par votre profil utilisateur." />
|
<lang en="This space allow you to open a SSO session. This will help you to securely access to all applications authorized by your profil." fr="Cet espace vous permet d'ouvrir une session SSO. Celle-ci vous aidera à accéder de manière totalement sécurisée à l'ensemble des applications autorisées par votre profil utilisateur." />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<TMPL_IF NAME="LOGIN_INFO">
|
||||||
|
<div>
|
||||||
|
<TMPL_VAR NAME="LOGIN_INFO">
|
||||||
|
</div>
|
||||||
|
</TMPL_IF>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="content-right">
|
<div id="content-right">
|
||||||
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
|
<h1><lang en="Open your SSO session" fr="Ouvrir une session SSO" /></h1>
|
||||||
|
@ -73,6 +73,12 @@
|
|||||||
|
|
||||||
<TMPL_INCLUDE NAME="password.tpl">
|
<TMPL_INCLUDE NAME="password.tpl">
|
||||||
|
|
||||||
|
<TMPL_IF NAME="LOGIN_INFO">
|
||||||
|
<div class="login_info">
|
||||||
|
<TMPL_VAR NAME="LOGIN_INFO">
|
||||||
|
</div>
|
||||||
|
</TMPL_IF>
|
||||||
|
|
||||||
<TMPL_IF NAME="PORTAL_URL">
|
<TMPL_IF NAME="PORTAL_URL">
|
||||||
<div id="logout">
|
<div id="logout">
|
||||||
<TMPL_IF NAME="MSG"><TMPL_VAR NAME="MSG"></TMPL_IF>
|
<TMPL_IF NAME="MSG"><TMPL_VAR NAME="MSG"></TMPL_IF>
|
||||||
|
@ -386,8 +386,9 @@ p.removeOther{
|
|||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.link {
|
div.link, div.login_info {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
margin:40px 200px;
|
margin:40px 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,6 +188,14 @@ sub issuerForUnAuthUser {
|
|||||||
$self->{_proxiedRelayState} = $relaystate;
|
$self->{_proxiedRelayState} = $relaystate;
|
||||||
$self->{_proxiedArtifact} = $artifact;
|
$self->{_proxiedArtifact} = $artifact;
|
||||||
|
|
||||||
|
# Create a back link on SP displayed on login page
|
||||||
|
my $html = "<a href=\"" . $self->referer() . "\">";
|
||||||
|
$html .=
|
||||||
|
&Lemonldap::NG::Portal::_i18n::msg( PM_BACKTOSP,
|
||||||
|
$ENV{HTTP_ACCEPT_LANGUAGE} );
|
||||||
|
$html .= "</a>";
|
||||||
|
$self->loginInfo($html);
|
||||||
|
|
||||||
return PE_OK;
|
return PE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,6 +123,7 @@ use constant {
|
|||||||
PM_REMEMBERCHOICE => 10,
|
PM_REMEMBERCHOICE => 10,
|
||||||
PM_SAML_SPLOGOUT => 11,
|
PM_SAML_SPLOGOUT => 11,
|
||||||
PM_REDIRECTION => 12,
|
PM_REDIRECTION => 12,
|
||||||
|
PM_BACKTOSP => 13,
|
||||||
};
|
};
|
||||||
|
|
||||||
# EXPORTER PARAMETERS
|
# EXPORTER PARAMETERS
|
||||||
@ -145,7 +146,7 @@ our @EXPORT = qw( PE_IMG_NOK PE_IMG_OK PE_INFO PE_REDIRECT PE_DONE PE_OK
|
|||||||
PM_USER PM_DATE PM_IP PM_SESSIONS_DELETED PM_OTHER_SESSIONS
|
PM_USER PM_DATE PM_IP PM_SESSIONS_DELETED PM_OTHER_SESSIONS
|
||||||
PM_REMOVE_OTHER_SESSIONS PM_PP_GRACE PM_PP_EXP_WARNING
|
PM_REMOVE_OTHER_SESSIONS PM_PP_GRACE PM_PP_EXP_WARNING
|
||||||
PM_SAML_IDPSELECT PM_SAML_IDPCHOOSEN PM_REMEMBERCHOICE PM_SAML_SPLOGOUT
|
PM_SAML_IDPSELECT PM_SAML_IDPCHOOSEN PM_REMEMBERCHOICE PM_SAML_SPLOGOUT
|
||||||
PM_REDIRECTION
|
PM_REDIRECTION PM_BACKTOSP
|
||||||
);
|
);
|
||||||
our %EXPORT_TAGS = ( 'all' => [ @EXPORT, 'import' ], );
|
our %EXPORT_TAGS = ( 'all' => [ @EXPORT, 'import' ], );
|
||||||
|
|
||||||
@ -832,6 +833,16 @@ sub info {
|
|||||||
return $self->{_info};
|
return $self->{_info};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##@method protected string loginInfo(string t)
|
||||||
|
# Get or set info to display to the user on login screen
|
||||||
|
# @param $t optional text to store
|
||||||
|
# @return HTML text to display
|
||||||
|
sub loginInfo {
|
||||||
|
my ( $self, $t ) = @_;
|
||||||
|
$self->{_loginInfo} .= $t if ( defined $t );
|
||||||
|
return $self->{_loginInfo};
|
||||||
|
}
|
||||||
|
|
||||||
##@method public void printImage(string file, string type)
|
##@method public void printImage(string file, string type)
|
||||||
# Print image to STDOUT
|
# Print image to STDOUT
|
||||||
# @param $file The path to the file to print
|
# @param $file The path to the file to print
|
||||||
|
@ -351,6 +351,7 @@ sub error_ro {
|
|||||||
# * PM_REMEMBERCHOICE 10
|
# * PM_REMEMBERCHOICE 10
|
||||||
# * PM_SAML_SPLOGOUT 11
|
# * PM_SAML_SPLOGOUT 11
|
||||||
# * PM_REDIRECTION 12
|
# * PM_REDIRECTION 12
|
||||||
|
# * PM_BACKTOSP 13
|
||||||
|
|
||||||
sub msg_en {
|
sub msg_en {
|
||||||
use utf8;
|
use utf8;
|
||||||
@ -368,6 +369,7 @@ sub msg_en {
|
|||||||
'Remember my choice',
|
'Remember my choice',
|
||||||
'Logout from service providers...',
|
'Logout from service providers...',
|
||||||
'Redirection in progress...',
|
'Redirection in progress...',
|
||||||
|
'Go back to service provider',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -387,6 +389,7 @@ sub msg_fr {
|
|||||||
'Se souvenir de mon choix',
|
'Se souvenir de mon choix',
|
||||||
'Déconnexion des services...',
|
'Déconnexion des services...',
|
||||||
'Redirection en cours...',
|
'Redirection en cours...',
|
||||||
|
'Retourner sur le fournisseur de service',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user