~dobey/ubuntuone-credentials/signon-plugin-part2

« back to all changes in this revision

Viewing changes to libubuntuoneauth/authenticator.h

  • Committer: Rodney Dawes
  • Date: 2016-06-17 18:24:10 UTC
  • Revision ID: rodney.dawes@canonical.com-20160617182410-hwt345smyxi0iwbk
Refactor so createSession/process are called after identity is stored.
Fix invalidateCredentials to actually invalidate the credentials.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    explicit Authenticator(Accounts::Manager *manager = 0, QObject *parent = 0);
44
44
 
 
45
    void process(SignOn::Identity *identity,
 
46
                 const QString &tokenName,
 
47
                 const QString &userName = QString(),
 
48
                 const QString &password = QString(),
 
49
                 const QString &otp = QString());
45
50
    void authenticate(const QString &tokenName,
46
51
                      const QString &userName = QString(),
47
52
                      const QString &password = QString(),