SAML: manage internationalization
This commit is contained in:
parent
975a585a51
commit
6ef67cc5ea
@ -782,10 +782,9 @@ sub sendLogoutResponseAfterLogoutRequest {
|
||||
if ( !$seconds ) {
|
||||
|
||||
$self->_subProcess(qw(autoRedirect));
|
||||
|
||||
$self->lmLog( "Logout response was not sent trough GET", 'error' );
|
||||
|
||||
return PE_ERROR;
|
||||
|
||||
}
|
||||
|
||||
# Redirect in few seconds
|
||||
@ -849,6 +848,7 @@ sub sendLogoutResponseAfterLogoutRequest {
|
||||
sub sendLogoutRequestToServiceProviders {
|
||||
my $self = shift;
|
||||
my $logout = shift;
|
||||
my $method = shift;
|
||||
my $server = $self->{_lassoServer};
|
||||
my $providerCount = 0;
|
||||
my $info = '';
|
||||
@ -860,11 +860,10 @@ sub sendLogoutRequestToServiceProviders {
|
||||
$self->resetProviderIdIndex($logout);
|
||||
|
||||
# Header of the block which will be displayed to the user, if needed.
|
||||
#$info .= &Lemonldap::NG::Portal::_i18n::msg(
|
||||
# PM_SAML_SPLOGOUT,
|
||||
# $ENV{HTTP_ACCEPT_LANGUAGE}
|
||||
# ) . '<ul>';
|
||||
$info .= 'Logout in progress, please wait few seconds...<ul>';
|
||||
$info .= &Lemonldap::NG::Portal::_i18n::msg(
|
||||
PM_SAML_SPLOGOUT,
|
||||
$ENV{HTTP_ACCEPT_LANGUAGE}
|
||||
) . '<ul>';
|
||||
|
||||
# Foreach SP found in session, get it from configuration, and send the
|
||||
# appropriate logout request (HTTP,POST,SOAP).
|
||||
@ -887,7 +886,9 @@ sub sendLogoutRequestToServiceProviders {
|
||||
|
||||
#my $method =
|
||||
# $self->getFirstHttpMethod( $server, $providerID, $protocolType );
|
||||
my $method = Lasso::Constants::HTTP_METHOD_REDIRECT;
|
||||
if ( !$method ) {
|
||||
$method = Lasso::Constants::HTTP_METHOD_REDIRECT;
|
||||
}
|
||||
|
||||
# Initiate the logout request
|
||||
unless ( $self->initLogoutRequest( $logout, $providerID, $method ) ) {
|
||||
|
@ -123,7 +123,7 @@ our @EXPORT = qw( PE_INFO PE_REDIRECT PE_DONE PE_OK PE_SESSIONEXPIRED
|
||||
PE_LOGOUT_OK
|
||||
PM_USER PM_DATE PM_IP PM_SESSIONS_DELETED PM_OTHER_SESSIONS
|
||||
PM_REMOVE_OTHER_SESSIONS PM_PP_GRACE PM_PP_EXP_WARNING
|
||||
PM_SAML_IDPSELECT PM_SAML_IDPCHOOSEN PM_REMEMBERCHOICE
|
||||
PM_SAML_IDPSELECT PM_SAML_IDPCHOOSEN PM_REMEMBERCHOICE PM_SAML_SPLOGOUT
|
||||
);
|
||||
our %EXPORT_TAGS = ( 'all' => [ @EXPORT, 'import' ], );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user