This issue addresses the management of the token and its expiration and it is an attempt to break the strong dependency with SSO.
This is partially addresses here: !662
and here: c08759d4