~jamesh/online-accounts-api/custom-connection

« back to all changes in this revision

Viewing changes to src/lib/OnlineAccountsDaemon/manager.cpp

  • Committer: CI Train Bot
  • Author(s): Alberto Mardegan
  • Date: 2016-02-12 07:46:35 UTC
  • mfrom: (16.1.5 sasl-1519330)
  • Revision ID: ci-train-bot@canonical.com-20160212074635-5xghp1srgn1b1nfy
Add support for SASL authentication. Fixes: #1519330

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * This file is part of OnlineAccountsDaemon
3
3
 *
4
 
 * Copyright (C) 2015 Canonical Ltd.
 
4
 * Copyright (C) 2015-2016 Canonical Ltd.
5
5
 *
6
6
 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7
7
 *
327
327
        } else if (mechanism == "HMAC-SHA1" || mechanism == "PLAINTEXT") {
328
328
            return ONLINE_ACCOUNTS_AUTH_METHOD_OAUTH1;
329
329
        }
 
330
    } else if (method == "sasl") {
 
331
        return ONLINE_ACCOUNTS_AUTH_METHOD_SASL;
330
332
    } else if (method == "password") {
331
333
        return ONLINE_ACCOUNTS_AUTH_METHOD_PASSWORD;
332
334
    }