message: Return SSO Error message from BE (lib)
diff: @@ -2400,9 +2400,14 @@ error Context::GetSSOIdentityProvider(const std::string &email) {
  HTTPResponse resp = TogglClient::GetInstance().Get(req);
  if (resp.err != noError) {
  + if (kBadRequestError == resp.err) {
  + return resp.body;
  + }
  return resp.err;
  }
  + // Success
  + if (resp.status_code == 200) {
  Json::Value root;
  Json::Reader reader;
  if (!reader.parse(resp.body, root)) {
  @@ -2414,6 +2419,11 @@ error Context::GetSSOIdentityProvider(const std::string &email) {
  } else {
  return "Missing sso_url key";
  }
  + } else {
  + // Return error message from the backend
  + return resp.body;
  + }
  +
  } catch(const Poco::Exception& exc) {
  return exc.displayText();
  