common view executed for service and non-service logins?

38 views
Skip to first unread message

Pablo Vidaurri

unread,
Jan 2, 2022, 12:19:43 AM1/2/22
to CAS Community
I have some java script embedded in casGenericSuccessView.html but it appears this only gets executed if a user logins in directly to auth/login without a TARGET/SERVICE query parameter. I need to execute the same js when a user logins in via a service. This has to be done after the TGT has been created. Is there a view that covers target and non-target post TGT?

Ray Bon

unread,
Jan 4, 2022, 1:49:22 PM1/4/22
to cas-...@apereo.org
Pablo,


Ray

On Sat, 2022-01-01 at 21:19 -0800, Pablo Vidaurri wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

I have some java script embedded in casGenericSuccessView.html but it appears this only gets executed if a user logins in directly to auth/login without a TARGET/SERVICE query parameter. I need to execute the same js when a user logins in via a service. This has to be done after the TGT has been created. Is there a view that covers target and non-target post TGT?

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.

Pablo Vidaurri

unread,
Jan 28, 2022, 1:03:27 PM1/28/22
to CAS Community, Ray Bon
Thanks for the response Ray. I'll see if I can use that to trigger some calls. But why does this  casGenericSuccessView.html not execute when I have a TARGET or SEVICE query param on the cas login url? I do see the webflow does execute.

Ray Bon

unread,
Jan 28, 2022, 1:29:47 PM1/28/22
to psvid...@gmail.com, cas-...@apereo.org
Pablo,

Generic success is only when target or service is missing (in the login flow, the switch to generic or service is at or right after the TGT is created). 
You can set a default page to use when no target or service is provided, with this property (which would also skip generic success)
cas.view.defaultRedirectUrl=

Ray
Reply all
Reply to author
Forward
0 new messages