Add SSO API (structure inspired by Java Client) + correct a warning