SAML: manage internationalization
This commit is contained in:
parent
975a585a51
commit
6ef67cc5ea
@ -687,7 +687,7 @@ sub issuerForAuthUser {
|
|||||||
# Proceed to logout on all others SP
|
# Proceed to logout on all others SP
|
||||||
my $logout_dump = $logout->dump;
|
my $logout_dump = $logout->dump;
|
||||||
my $provider_nb =
|
my $provider_nb =
|
||||||
$self->sendLogoutRequestToServiceProviders($logout);
|
$self->sendLogoutRequestToServiceProviders($logout);
|
||||||
|
|
||||||
# Rebuild Lasso::Logout object. All data have already been checked.
|
# Rebuild Lasso::Logout object. All data have already been checked.
|
||||||
$logout = Lasso::Logout::new_from_dump( $server, $logout_dump );
|
$logout = Lasso::Logout::new_from_dump( $server, $logout_dump );
|
||||||
@ -781,12 +781,11 @@ sub sendLogoutResponseAfterLogoutRequest {
|
|||||||
# Redirect immediately
|
# Redirect immediately
|
||||||
if ( !$seconds ) {
|
if ( !$seconds ) {
|
||||||
|
|
||||||
$self->_subProcess(qw(autoRedirect));
|
$self->_subProcess(qw(autoRedirect));
|
||||||
|
$self->lmLog( "Logout response was not sent trough GET", 'error' );
|
||||||
$self->lmLog( "Logout response was not sent trough GET", 'error' );
|
|
||||||
|
|
||||||
return PE_ERROR;
|
return PE_ERROR;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
# Redirect in few seconds
|
# Redirect in few seconds
|
||||||
else {
|
else {
|
||||||
@ -849,6 +848,7 @@ sub sendLogoutResponseAfterLogoutRequest {
|
|||||||
sub sendLogoutRequestToServiceProviders {
|
sub sendLogoutRequestToServiceProviders {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $logout = shift;
|
my $logout = shift;
|
||||||
|
my $method = shift;
|
||||||
my $server = $self->{_lassoServer};
|
my $server = $self->{_lassoServer};
|
||||||
my $providerCount = 0;
|
my $providerCount = 0;
|
||||||
my $info = '';
|
my $info = '';
|
||||||
@ -860,11 +860,10 @@ sub sendLogoutRequestToServiceProviders {
|
|||||||
$self->resetProviderIdIndex($logout);
|
$self->resetProviderIdIndex($logout);
|
||||||
|
|
||||||
# Header of the block which will be displayed to the user, if needed.
|
# Header of the block which will be displayed to the user, if needed.
|
||||||
#$info .= &Lemonldap::NG::Portal::_i18n::msg(
|
$info .= &Lemonldap::NG::Portal::_i18n::msg(
|
||||||
# PM_SAML_SPLOGOUT,
|
PM_SAML_SPLOGOUT,
|
||||||
# $ENV{HTTP_ACCEPT_LANGUAGE}
|
$ENV{HTTP_ACCEPT_LANGUAGE}
|
||||||
# ) . '<ul>';
|
) . '<ul>';
|
||||||
$info .= 'Logout in progress, please wait few seconds...<ul>';
|
|
||||||
|
|
||||||
# Foreach SP found in session, get it from configuration, and send the
|
# Foreach SP found in session, get it from configuration, and send the
|
||||||
# appropriate logout request (HTTP,POST,SOAP).
|
# appropriate logout request (HTTP,POST,SOAP).
|
||||||
@ -887,7 +886,9 @@ sub sendLogoutRequestToServiceProviders {
|
|||||||
|
|
||||||
#my $method =
|
#my $method =
|
||||||
# $self->getFirstHttpMethod( $server, $providerID, $protocolType );
|
# $self->getFirstHttpMethod( $server, $providerID, $protocolType );
|
||||||
my $method = Lasso::Constants::HTTP_METHOD_REDIRECT;
|
if ( !$method ) {
|
||||||
|
$method = Lasso::Constants::HTTP_METHOD_REDIRECT;
|
||||||
|
}
|
||||||
|
|
||||||
# Initiate the logout request
|
# Initiate the logout request
|
||||||
unless ( $self->initLogoutRequest( $logout, $providerID, $method ) ) {
|
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
|
PE_LOGOUT_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_IDPSELECT PM_SAML_IDPCHOOSEN PM_REMEMBERCHOICE PM_SAML_SPLOGOUT
|
||||||
);
|
);
|
||||||
our %EXPORT_TAGS = ( 'all' => [ @EXPORT, 'import' ], );
|
our %EXPORT_TAGS = ( 'all' => [ @EXPORT, 'import' ], );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user