You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! This issue is related to a Znuny setup with Apache Mellon as SSO authentication method.
To make it short: when SSO is enabled and an unauthenticated agent wants to access a ticket through its direct link, Znuny redirects to the IDP for the login, then redirects to the homepage instead of the wished ticket.
My guess is, if your LoginURL is, let's say, /sso/login?RedirectTo=/otrs/index.pl
and this part adds ?Reason=LoginFailed&RequestedURL=$Param{RequestedURL},
you end up with something like /sso/login?RedirectTo=/otrs/index.pl?Reason=LoginFailed&RequestedURL=ActionTicketZoom&TicketID=10000000 which is not really a valid query.
Instead, the SSO redirection to the SP will return /sso/login?RedirectTo=/otrs/index.pl?Reason=LoginFailed and redirect the agent to the homepage.
So by reencoding the query, we end up with /sso/login?RedirectTo=/otrs/index.pl%3FReason%3DLoginFailed%26RequestedURL%3DActionTicketZoom%26TicketID%3D10000000, then the agent will be redirected to the right page.
The text was updated successfully, but these errors were encountered:
Hi! This issue is related to a Znuny setup with Apache Mellon as SSO authentication method.
To make it short: when SSO is enabled and an unauthenticated agent wants to access a ticket through its direct link, Znuny redirects to the IDP for the login, then redirects to the homepage instead of the wished ticket.
Here's the breakdown of my situation: https://community.znuny.org/viewtopic.php?t=44275
I've found a solution that I've written at the end.
Environment
Expected behavior
Actual behavior
RequestedURL
parameter that contains theAgentTicketZoom
parameter.How to reproduce
Steps to reproduce the behavior:
Possible solution
I've fixed our setup by changing Kernel/System/Web/InterfaceAgent.pm#L284 by
My guess is, if your
LoginURL
is, let's say,/sso/login?RedirectTo=/otrs/index.pl
and this part adds
?Reason=LoginFailed&RequestedURL=$Param{RequestedURL}
,you end up with something like
/sso/login?RedirectTo=/otrs/index.pl?Reason=LoginFailed&RequestedURL=ActionTicketZoom&TicketID=10000000
which is not really a valid query.Instead, the SSO redirection to the SP will return
/sso/login?RedirectTo=/otrs/index.pl?Reason=LoginFailed
and redirect the agent to the homepage.So by reencoding the query, we end up with
/sso/login?RedirectTo=/otrs/index.pl%3FReason%3DLoginFailed%26RequestedURL%3DActionTicketZoom%26TicketID%3D10000000
, then the agent will be redirected to the right page.The text was updated successfully, but these errors were encountered: