Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
How do I link to an SSO with a HostAccountID as a parameter?

I wrote a SDK SSO extension and I want to link to it from another extension, and pass a HostAccountID so that the SSO knows the context of which account is being worked on. How do I do this with frontend Javascript code?

Posted 5 years ago
Edited 5 years ago
Mark Ostroth
309 × 5 Administrator
Votes Newest

Answers


Post UUX 4.4.0.94

tecton.actions.navigateTo('ssoDirect.ssoAccount', [{vendorId}, {hostAccountId}]);

Pre UUX 4.4.0.94

tecton.actions.openURL('mobilews/sso/generic/{vendorId}/{hostAccountId}', { requiresToken: true });

Pre UUX 4.4.0.81

tecton.actions.openURL('mobilews/sso/generic/{vendorId}/{hostAccountId}?q2token={q2Token}');

q2Token is the HQ Session ID, which can be retrieved with self.online_session.session_id

wiki
Posted 5 years ago
Edited 5 years ago
Mark Ostroth
309 × 5 Administrator
1

Mark, could you also pass in other parameters to the SSO Extension along with the session ID? I've got an SSO extension that I'm trying to link from another extension but pass it a variable as well.

— Justin Miller   5 years ago
0

Justin, it does not take additional parameters. I recommend implementing a shared cache setup.The first extension sets a value in the cache and then the second extension (SSO) pulls those values from the known cache location.

— Ryan Hollister   5 years ago
0

Additionally Justin, make sure the key you use in the cache is unique to that session, so append self.online_session.session_id to the key name. Also probably want to delete/unset it once its been read by the SSO extension.

— Ryan Hollister   5 years ago