No CDA redirection if already authenticated
Hello,
If I'm already authenticated on the main domain, I can't access a cross domain site.
If I authenticate through the cross domain site first, there is no such issue.
I've empirically pinpointed it to the following part (the CDA redir block is not evaluated if authenticated) :
diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
index e32d0c027..af3f23d04 100644
--- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
+++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm
@@ -87,7 +87,8 @@ sub authenticatedRequest {
$req,
[
'importHandlerDatas', 'controlUrl',
- 'checkLogout', @{ $self->forAuthUser }
+ 'checkLogout', @{ $self->forAuthUser },
+ @{ $self->afterDatas },
]
);
}
I don't know if this change can cause some side effects, I've not witnessed any yet.