We have a plugin running within SmartClient (2013 and later). It’s a Worksapce plugin (but I don’t think the type of plugin matters).
We want to get the session token for the currently logged in user (who logged in via SmartClient, using whatever method for that user’s account). I understand there could be serveral concurrent logins (to different management / master servers) and hence several sessions, in which case I guess we’d want them all.
We’d also like to know (via an event?) when the token gets renewed (so we can start using the new one)
I do not think you can. The Smart Client environment handles all token renewals and similar automatically. Perhaps you can outline what you want to achieve…
Hi Bo
So I think I’ve got an answer to my own question (don’t know how I missed it, since we knew about LoginSettings).
We can do: LoginSettings ls = LoginSettingsCache.GetLoginSettings(EnvironmentManager.Instance.MasterSite);
and then “ls” has: virtual String Token [get, set]
and also: EventHandler TokenChangedEvent This event is fired whenever the Token has changed. If you need to use the Token to pass on to an ActiveX or to a 3rd server, this event can be used to re-pass on the token as it is renewed.
We’ll give it a go (we need to pass the token on)
Thanks.