Rank: Advanced Member
Joined: 9/21/2010 Posts: 33 Points: 99 Location: Richardson, Tx
|
Hey guys,
I am building a list item that incorporates SSO functionality. Essentially, it does a real-time server to server authentication and then redirects the user to the target URL. Normally, this would be just a URL Redirect, but given the whole JSON aspect of listitems, I am wondering if there is a better way to approach this.
I know I could just pre-calculate the target URL (the assumption is there may be a secured session ID or something in the query string), but I want to be able to handle situations where the user's session may be stale regarding the SSO.
So in a nutshell, I guess I am asking, is there a method for sending a redirect command back from the JSON request upon clicking a link?
|
Rank: Advanced Member
Joined: 9/21/2010 Posts: 33 Points: 99 Location: Richardson, Tx
|
|
Rank: Active Member
Joined: 6/10/2009 Posts: 16 Points: 48 Location: Virginia
|
Glad you got it figured out. If you are looking to do a simple redirect from a ListItem, you can set two properties on the associated click action which would then cause a simple url redirect to happen when triggered:
(this assumes ca=EntreeClickActionObject and li=EntreeListItem)
ca["Type"] = "GoTo"; ca["Url"] = "http://url.to.redirect.to"; li.SetClickAction(ca);
|