Restored SSO when calling openSessionWithPermissions