account-plugins-0.11+14.04.20140409.1/0000755000015301777760000000000012321305764017311 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/tools/0000755000015301777760000000000012321305764020451 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/tools/account-console0000755000015301777760000003132112321305022023456 0ustar pbusernogroup00000000000000#! /usr/bin/python3 import argparse import sys from gi.repository import GLib from gi.repository import GObject from gi.repository import Accounts from gi.repository import Signon class GStrv(list): __gtype__ = GObject.type_from_name('GStrv') class AccountConsole: def __init__(self): self.manager = Accounts.Manager() def list_accounts(self, args): accounts = self.manager.list() if not accounts: print('No accounts') main_loop.quit() return for account_id in accounts: account = self.manager.get_account(account_id) enabledness = 'enabled' if account.get_enabled() else 'disabled' print('account: id %s, %s, provider: %s' % (account_id, enabledness, account.get_provider_name())) main_loop.quit() def show_account(self, args): self.args = args account = self.manager.get_account(args.account) if not account: print >> sys.stderr, 'Account "%s" not found' % args.account sys.exit(1) enabledness = 'enabled' if account.get_enabled() else 'disabled' print('account: id %s, %s, provider: %s' % (account.id, enabledness, account.get_provider_name())) print(' Global settings:') i = account.get_settings_iter(None) self.enumerate_settings(i) # enumerate services and their settings services = account.list_services() for s in services: service = Accounts.AccountService.new(account, s) print(' Settings for %s' % (s.get_name(),)) i = service.get_settings_iter(None) self.enumerate_settings(i) main_loop.quit() def create_account(self, args): self.args = args account = self.manager.create_account(args.provider) account.set_enabled(not args.disabled) for setting in args.s: (name, value) = self.parse_setting(setting) account.set_value(name, value) account.store(self.on_account_stored, None) def edit_account(self, args): self.args = args account = self.manager.get_account(args.account) if not account: print >> sys.stderr, 'Account "%s" not found' % args.account sys.exit(1) self.account = account if args.service: service = self.manager.get_service(args.service) if not service: print >> sys.stderr, 'Service "%s" not found' % args.service sys.exit(1) account.select_service(service) if args.enable: account.set_enabled(True) elif args.disable: account.set_enabled(False) for setting in args.s: (name, value) = self.parse_setting(setting) account.set_value(name, value) for setting in args.u: account.set_value(setting, None) if args.username is not None or args.password is not None or args.caption: value = GObject.Value() value.init(GObject.TYPE_UINT) signon_id = account.get_value(args.signon_id_field, value) if signon_id != Accounts.SettingSource.NONE and value.get_uint() != 0: self.identity = Signon.Identity.new_from_db(value.get_uint()) self.identity.query_info(self.on_info_ready, None) else: self.identity = Signon.Identity.new() info = Signon.IdentityInfo.new() self.write_signon_info(info) else: account.store(self.on_account_stored, None) def on_info_ready(self, identity, info, error, userdata): if error: print >> sys.stderr, 'Couldn\'t get identity info' sys.exit(1) self.write_signon_info(info) def write_signon_info(self, info): if self.args.username is not None: info.set_username(self.args.username) if self.args.caption or self.args.username: info.set_caption(self.args.caption or self.args.username) if self.args.password is not None or info.get_id() == 0: info.set_secret(self.args.password or '', True) self.identity.store_credentials_with_info(info, self.on_credentials_stored, self.account) def on_credentials_stored(self, identity, id, error, account): account.set_variant(self.args.signon_id_field, GLib.Variant('u', id)) account.store(self.on_account_stored, None) def delete_account(self, args): self.args = args account = self.manager.get_account(args.account) if not account: print >> sys.stderr, 'Account "%s" not found' % args.account sys.exit(1) account.delete() account.store(self.on_account_stored_deleted, None) def login_identity(self, args): session_data = {} for parameter in args.p: (key, value) = self.parse_setting(parameter) session_data[key] = value self.login(args.identity, args.method, args.mechanism,session_data) def login_account(self, args): self.args = args account = self.manager.get_account(args.account) if not account: print >> sys.stderr, 'Account "%s" not found' % args.account sys.exit(1) self.account = account service = None if args.service: service = self.manager.get_service(args.service) if not service: print >> sys.stderr, 'Service "%s" not found' % args.service sys.exit(1) account_service = Accounts.AccountService.new(account, service) auth_data = account_service.get_auth_data() identity = auth_data.get_credentials_id() method = auth_data.get_method() mechanism = auth_data.get_mechanism() session_data = auth_data.get_parameters() # last, add session data from the command line for parameter in args.p: (key, value) = self.parse_setting(parameter) session_data[key] = value self.login(identity, method, mechanism, session_data) def login(self, identity, method, mechanism, session_data): if identity: self.session = Signon.AuthSession.new(identity, method) else: self.session = Signon.AuthSession.new(0, method) print(session_data) self.session.process(session_data, mechanism, self.login_process_cb, None) def load_auth_parameters(self, iterator, parameters): allsettings = {} (ok, key, value) = iterator.next() while ok: allsettings[key] = value (ok, key, value) = iterator.next() for (key, value) in allsettings.iteritems(): # if the param key itself contains a '/', assume it's a list if '/' in key: (key, item_id) = key.split('/', 1) if not item_id.startswith('item'): continue if not parameters.has_key(key): parameters[key] = [] parameters[key].append(value) else: parameters[key] = value def login_process_cb(self, session, reply, error, userdata): if error: print >> sys.stderr, 'Got authentication error:', error.message sys.exit(1) print('Got reply: ', reply) main_loop.quit() def on_account_stored_deleted(self, account, error, userdata): if not error: print('OK') else: print >> sys.stderr, 'Error occurred: ', error.message main_loop.quit() def on_account_stored(self, account, error, userdata): if not error: if 'print_id' in self.args and self.args.print_id: print('%s' % (account.id)) else: print('OK %s' % (account.id)) else: print >> sys.stderr, 'Error occurred: ', error.message main_loop.quit() def enumerate_settings(self, iterator): settings = [] (ok, key, value) = iterator.next() while ok: settings.append((key, value)) (ok, key, value) = iterator.next() settings.sort() for (key, value) in settings: print(' %s: %s (%s)' % (key, value, type(value))) def parse_setting(self, setting): (name, value_str) = setting.split('=') if ':' in name: (type, name) = name.split(':') else: type = 's' if type == 'i': value = int(value_str) elif type == 'u': value = GObject.Value() value.init(GObject.TYPE_UINT) value.set_uint(int(value_str)) elif type == 'b': value = bool(value_str) elif type == 's': value = value_str elif type == 'as': value = GStrv(eval(value_str)) return (name, value) app = AccountConsole() parser = argparse.ArgumentParser(description='Command-line tool for account handling') subparsers = parser.add_subparsers(title='Valid actions') subparser = subparsers.add_parser('list', help='List existing accounts') subparser.set_defaults(func=app.list_accounts) subparser = subparsers.add_parser('show', help='Show an account\'s settings') subparser.add_argument('account', type=int, help='Id of the account') subparser.set_defaults(func=app.show_account) subparser = subparsers.add_parser('create', help='Create a new account') subparser.add_argument('provider', help='Provider name (see /usr/share/accounts/providers)') subparser.add_argument('--disabled', action='store_true', help='Create the account in disabled state') subparser.add_argument('--print-id', action='store_true', help='Print the account ID on stdout') subparser.add_argument('-s', action='append', default=[], help='Add a service setting, in the form [:]=') subparser.set_defaults(func=app.create_account) subparser = subparsers.add_parser('edit', help='Edit an existing account') subparser.add_argument('account', type=int, help='Id of the account') subparser.add_argument('--disable', action='store_true', help='Disable the account') subparser.add_argument('--enable', action='store_true', help='Enable the account') subparser.add_argument('--service', type=str, help='Operates on the given service') subparser.add_argument('-s', action='append', default=[], metavar='SETTING', help='Add or changes a service setting, in the form [:]=') subparser.add_argument('-u', action='append', default=[], metavar='SETTING_NAME', help='Unset a setting') subparser.add_argument('--signon-id-field', type=str, default='CredentialsId', help='Name of the key holding the SignOn ID') subparser.add_argument('--caption', type=str, help='SignOn caption (username description)') subparser.add_argument('--username', type=str, help='SignOn username') subparser.add_argument('--password', type=str, help='SignOn password') subparser.set_defaults(func=app.edit_account) subparser = subparsers.add_parser('delete', help='Deletes an existing account') subparser.add_argument('account', type=int, help='Id of the account') subparser.set_defaults(func=app.delete_account) subparser = subparsers.add_parser('signon_login', help='Authenticate the given identity') subparser.add_argument('identity', type=int, help='Id of the SignOn identity') subparser.add_argument('method', type=str, help='Authentication method') subparser.add_argument('mechanism', type=str, help='Authentication mechanism') subparser.add_argument('-p', action='append', default=[], metavar='PARAMETER', help='Session parameter, in the form [:]=') subparser.set_defaults(func=app.login_identity) subparser = subparsers.add_parser('login', help='Authenticate the given identity') subparser.add_argument('account', type=int, help='Id of the SignOn identity') subparser.add_argument('--service', type=str, help='Account service') subparser.add_argument('--signon-id-field', type=str, default='CredentialsId', help='Name of the key holding the SignOn ID') mm = subparser.add_argument_group() mm.add_argument('--method', type=str, help='Authentication method') mm.add_argument('--mechanism', type=str, help='Authentication mechanism') subparser.add_argument('-p', action='append', default=[], metavar='PARAMETER', help='Session parameter, in the form [:]=') subparser.set_defaults(func=app.login_account) args = parser.parse_args() if 'func' in args: main_loop = GLib.MainLoop() GLib.idle_add(args.func, args) main_loop.run() else: parser.print_help() account-plugins-0.11+14.04.20140409.1/Makefile.am0000644000015301777760000001124012321305022021326 0ustar pbusernogroup00000000000000SUBDIRS = \ po DISTCHECK_CONFIGURE_FLAGS = \ --enable-libaccount-plugin \ --enable-tests if ENABLE_LIBACCOUNT_PLUGIN # Binary account plugins. plugin_LTLIBRARIES = \ libgeneric-oauth.la \ libgoogle.la VALAFLAGS = \ --vapidir $(top_srcdir)/src \ --pkg config \ --pkg AccountPlugin \ --pkg libaccounts-glib \ --pkg posix \ --pkg signon \ --pkg gtk+-3.0 \ --pkg gmodule-2.0 plugin_cppflags = \ $(ACCOUNT_PLUGINS_CFLAGS) \ -include $(top_builddir)/config.h \ $(WARN_CFLAGS) plugin_libadd = \ $(ACCOUNT_PLUGINS_LIBS) plugin_ldflags = \ -export_dynamic \ -avoid-version \ -module \ -no-undefined \ -export-symbols-regex '^ap_module_get_object_type' libgoogle_la_CPPFLAGS = $(plugin_cppflags) libgoogle_la_LIBADD = $(plugin_libadd) libgoogle_la_LDFLAGS = $(plugin_ldflags) libgoogle_la_SOURCES = \ src/google.vala libgeneric_oauth_la_CPPFLAGS = $(plugin_cppflags) libgeneric_oauth_la_LIBADD = $(plugin_libadd) libgeneric_oauth_la_LDFLAGS = $(plugin_ldflags) libgeneric_oauth_la_SOURCES = \ src/generic-oauth.vala endif # ENABLE_LIBACCOUNT_PLUGIN if ENABLE_QML_PLUGINS SUBDIRS += qml endif # ENABLE_QML_PLUGINS # Extract transatable strings from .provider files %.provider: %.provider.in $(INTLTOOL_MERGE) $(AM_V_at)$(MKDIR_P) $(builddir)/data/providers $(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@ providers_in_in_files = \ data/providers/facebook.provider.in.in \ data/providers/flickr.provider.in.in \ data/providers/foursquare.provider.in.in \ data/providers/google.provider.in.in \ data/providers/identica.provider.in.in \ data/providers/linkedin.provider.in.in \ data/providers/instagram.provider.in.in \ data/providers/sina.provider.in.in \ data/providers/sohu.provider.in.in \ data/providers/twitter.provider.in.in \ data/providers/windows-live.provider.in.in providers_DATA = \ $(providers_in_in_files:.provider.in.in=.provider) # Extract translatable strings from .service files %.service: %.service.in $(INTLTOOL_MERGE) $(AM_V_at)$(MKDIR_P) $(builddir)/data/services $(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@ services_in_files = \ data/services/facebook-contacts.service.in \ data/services/facebook-im.service.in \ data/services/facebook-microblog.service.in \ data/services/facebook-sharing.service.in \ data/services/flickr-microblog.service.in \ data/services/flickr-sharing.service.in \ data/services/foursquare-microblog.service.in \ data/services/google-drive.service.in \ data/services/google-im.service.in \ data/services/identica-microblog.service.in \ data/services/linkedin-microblog.service.in \ data/services/instagram-microblog.service.in \ data/services/picasa.service.in \ data/services/sina-microblog.service.in \ data/services/sohu-microblog.service.in \ data/services/twitter-microblog.service.in \ data/services/wlm.service.in services_DATA = \ $(services_in_files:.service.in=.service) webkitoptionsdir = $(sysconfdir)/signon-ui/webkit-options.d dist_webkitoptions_DATA = \ data/webkit-options/accounts.google.com.conf \ data/webkit-options/api.instagram.com.conf \ data/webkit-options/api.weibo.com.conf \ data/webkit-options/api.t.sohu.com.conf \ data/webkit-options/api.twitter.com.conf \ data/webkit-options/foursquare.com.conf \ data/webkit-options/identi.ca.conf \ data/webkit-options/login.live.com.conf \ data/webkit-options/login.yahoo.com.conf \ data/webkit-options/www.facebook.com.conf \ data/webkit-options/www.linkedin.com.conf dist_bin_SCRIPTS = \ tools/account-console dist_noinst_DATA = \ $(services_in_files) \ src/config.vapi if HAVE_XMLLINT TESTS = \ test-provider \ test-service test-provider: Makefile $(providers_DATA) $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ echo "for provider in $(providers_DATA)" >> $@; \ echo "do" >> $@; \ echo " $(XMLLINT) --noout $(top_builddir)/\$$provider || exit 1" >> $@; \ echo "done" >> $@; \ chmod +x $@ test-service: Makefile $(services_DATA) $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ echo "for service in $(services_DATA)" >> $@; \ echo "do" >> $@; \ echo " $(XMLLINT) --noout $(top_builddir)/\$$service || exit 1" >> $@; \ echo "done" >> $@; \ chmod +x $@ endif # HAVE_XMLLINT CLEANFILES = \ $(services_DATA) \ $(providers_DATA) \ $(TESTS) DISTCLEANFILES = \ intltool-extract \ intltool-merge \ intltool-update \ po/.intltool-merge-cache dist-hook: bzr-changelog-hook bzr-changelog-hook: Makefile $(AM_V_at)cd $(top_srcdir) && \ if $(top_srcdir)/missing --run bzr log \ --gnu-changelog > .ChangeLog.tmp; \ then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \ else rm -f .ChangeLog.tmp; exit 1; fi .PHONY: bzr-changelog-hook account-plugins-0.11+14.04.20140409.1/configure.ac0000644000015301777760000002514312321305022021567 0ustar pbusernogroup00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT([account-plugins], [0.11], [https://bugs.launchpad.net/online-accounts-account-plugins/+filebug], [account-plugins], [https://launchpad.net/online-accounts-account-plugins]) AM_INIT_AUTOMAKE([1.10 -Wall -Wno-portability silent-rules subdir-objects]) AM_CONFIG_HEADER(config.h) # Gobject Introspection AC_CONFIG_MACRO_DIR([m4]) GOBJECT_INTROSPECTION_CHECK([1.30.0]) # Check for programs AC_PROG_CC AM_PROG_CC_C_O OVERRIDE_PROG_VALAC([0.15.1], [valac-0.16 valac-0.14 valac]) LT_PREREQ([2.2]) LT_INIT([disable-static]) IT_PROG_INTLTOOL([0.50.0]) AC_SUBST([GETTEXT_PACKAGE], [$PACKAGE_TARNAME]) PKG_PROG_PKG_CONFIG([0.24]) AS_IF([test "x$prefix" = "xNONE"], [real_prefix=$ac_default_prefix], [real_prefix=$prefix]) # Binary account plugins. AC_ARG_ENABLE([libaccount-plugin], [AS_HELP_STRING([--disable-libaccount-plugin], [build without support for libaccount-plugin (binary account plugins)])]) AS_IF([test "x$enable_libaccount_plugin" != "xno"], [PKG_CHECK_EXISTS([account-plugin], [have_libaccount_plugin=yes], [have_libaccount_plugin=no])], [have_libaccount_plugin=no]) AS_IF([test "x$have_libaccount_plugin" = "xyes"], [PKG_CHECK_MODULES([ACCOUNT_PLUGINS], [account-plugin >= 0.1.3])], [AS_IF([test "x$enable_libaccount_plugin" = "xyes"], [AC_MSG_ERROR([libaccount-plugin support enabled but required dependencies were not found])])]) AM_CONDITIONAL([ENABLE_LIBACCOUNT_PLUGIN], [test "x$have_libaccount_plugin" = "xyes"]) # XML data files for libaccounts-glib. PKG_CHECK_EXISTS([libaccounts-glib]) AC_SUBST([plugindir], [`$PKG_CONFIG --variable provider_plugindir --define-variable=prefix=$real_prefix account-plugin`]) # QML account plugins. AC_ARG_ENABLE([qml-plugins], [AS_HELP_STRING([--disable-qml-plugins], [build without support for QML plugins for Ubuntu Touch])]) AS_IF([test "x$enable_qml_plugins" != "xno"], [have_uoa_plugin=yes]) AM_CONDITIONAL([ENABLE_QML_PLUGINS], [test "x$have_uoa_plugin" = "xyes"]) # QML plugins installation path AC_SUBST([qmlpluginsdir], [`$PKG_CONFIG --variable plugin_qml_dir --define-variable=prefix=$real_prefix OnlineAccountsPlugin`]) AC_MSG_CHECKING(for qmlplugins directory) if test "x$qmlpluginsdir" = "x" ; then # fallback if the previous failed qmlpluginsdir="$real_prefix/share/accounts/qml-plugins" fi # libaccounts providers and service files AC_SUBST([providersdir], [`$PKG_CONFIG --variable providerfilesdir --define-variable=prefix=$real_prefix libaccounts-glib`]) AC_SUBST([servicesdir], [`$PKG_CONFIG --variable servicefilesdir --define-variable=prefix=$real_prefix libaccounts-glib`]) AC_ARG_ENABLE([TESTS], [AS_HELP_STRING([--disable-tests], [Disable tests])]) AS_IF([test "x$enable_tests" != "xno"], [AC_PATH_PROG([XMLLINT], [xmllint], [notfound]) AS_IF([test "x$XMLLINT" = "xnotfound"], [have_xmllint=no], [have_xmllint=yes])]) AS_IF([test "x$have_xmllint" = "xyes"], [AC_SUBST([XMLLINT])], [AS_IF([test "x$enable_tests" = "xyes"], [AC_MSG_ERROR([testing support enabled but required dependencies were not found])])]) AM_CONDITIONAL([HAVE_XMLLINT], [test "x$have_xmllint" = "xyes"]) # Set Twitter consumer key/secret AC_ARG_WITH(twitter-consumer-key, [AS_HELP_STRING([--with-twitter-consumer-key], [Twitter consumer key])], [twitter_consumer_key=$withval], [twitter_consumer_key="mkFv4kTQ89G6J8fB3rxg"]) AC_ARG_WITH(twitter-consumer-secret, [AS_HELP_STRING([--with-twitter-consumer-secret], [Twitter consumer secret])], [twitter_consumer_secret=$withval], [twitter_consumer_secret="9fvOe8rtOXUeO5MynIaU1JtDEKeQaYmvOt1AjLavHw"]) AC_SUBST(TWITTER_CONSUMER_KEY, ["$twitter_consumer_key"]) AC_SUBST(TWITTER_CONSUMER_SECRET, ["$twitter_consumer_secret"]) # Set LinkedIn consumer key/secret. AC_ARG_WITH(linkedin-consumer-key, [AS_HELP_STRING([--with-linkedin-consumer-key], [LinkedIn consumer key])], [linkedin_consumer_key=$withval], [linkedin_consumer_key="34gnzrg96iq5"]) AC_ARG_WITH(linkedin-consumer-secret, [AS_HELP_STRING([--with-linkedin-consumer-secret], [LinkedIn consumer secret])], [linkedin_consumer_secret=$withval], [linkedin_consumer_secret="BazRki2LE8eZtcqh"]) AC_SUBST(LINKEDIN_CONSUMER_KEY, ["$linkedin_consumer_key"]) AC_SUBST(LINKEDIN_CONSUMER_SECRET, ["$linkedin_consumer_secret"]) # Set Instagram client id/secret. AC_ARG_WITH(instagram-client-id, [AS_HELP_STRING([--with-instagram-client-id], [instagram client id])], [instagram_client_id=$withval], [instagram_client_id="01c3df41a2274a14882adea8e8ebbd46"]) AC_ARG_WITH(instagram-client-secret, [AS_HELP_STRING([--with-instagram-client-secret], [instagram client secret])], [instagram_client_secret=$withval], [instagram_client_secret="4751ccdc39c648719ea83cfb1c866c26"]) AC_SUBST(INSTAGRAM_CLIENT_ID, ["$instagram_client_id"]) AC_SUBST(INSTAGRAM_CLIENT_SECRET, ["$instagram_client_secret"]) # Set Facebook client id AC_ARG_WITH(facebook-client-id, [AS_HELP_STRING([--with-facebook-client-id], [Facebook client ID])], [facebook_client_id=$withval], [facebook_client_id="302061903208115"]) AC_SUBST(FACEBOOK_CLIENT_ID, ["$facebook_client_id"]) # Set Flickr consumer key/secret AC_ARG_WITH(flickr-consumer-key, [AS_HELP_STRING([--with-flickr-consumer-key], [Flickr consumer key])], [flickr_consumer_key=$withval], [flickr_consumer_key="4aa0260d1eccfe968bb9f214f18e46fe"]) AC_ARG_WITH(flickr-consumer-secret, [AS_HELP_STRING([--with-flickr-consumer-secret], [Flickr consumer secret])], [flickr_consumer_secret=$withval], [flickr_consumer_secret="cbb9e94a8c3fe831"]) AC_SUBST(FLICKR_CONSUMER_KEY, ["$flickr_consumer_key"]) AC_SUBST(FLICKR_CONSUMER_SECRET, ["$flickr_consumer_secret"]) # Set Google client id AC_ARG_WITH(google-client-id, [AS_HELP_STRING([--with-google-client-id], [Google client ID])], [google_client_id=$withval], [google_client_id="995235780104-c3nepmjkcetqua2ao9797r5j38leb3e4.apps.googleusercontent.com"]) AC_ARG_WITH(google-client-secret, [AS_HELP_STRING([--with-google-client-secret], [Google client secret])], [google_client_secret=$withval], [google_client_secret="NCB6sQ1OHn3-OamBu8-98M31"]) AC_SUBST(GOOGLE_CLIENT_ID, ["$google_client_id"]) AC_SUBST(GOOGLE_CLIENT_SECRET, ["$google_client_secret"]) # Set Foursquare client id AC_ARG_WITH(foursquare-client-id, [AS_HELP_STRING([--with-foursquare-client-id], [Foursquare client ID])], [foursquare_client_id=$withval], [foursquare_client_id="BA0GOA0K3PTRS1KUJ5TTZ1P3GDRH3VJEEXY4N44ROPUJYKPW"]) AC_SUBST(FOURSQUARE_CLIENT_ID, ["$foursquare_client_id"]) # Set identi.ca consumer key/secret AC_ARG_WITH(identica-consumer-key, [AS_HELP_STRING([--with-identica-consumer-key], [identi.ca consumer key])], [identica_consumer_key=$withval], [identica_consumer_key="anonymous"]) AC_ARG_WITH(identica-consumer-secret, [AS_HELP_STRING([--with-identica-consumer-secret], [identi.ca consumer secret])], [identica_consumer_secret=$withval], [identica_consumer_secret="anonymous"]) AC_SUBST(IDENTICA_CONSUMER_KEY, ["$identica_consumer_key"]) AC_SUBST(IDENTICA_CONSUMER_SECRET, ["$identica_consumer_secret"]) # Set Sina client id/secret AC_ARG_WITH(sina-client-id, [AS_HELP_STRING([--with-sina-client-id], [Sina client id])], [sina_client_id=$withval], [sina_client_id="3011480316"]) AC_ARG_WITH(sina-client-secret, [AS_HELP_STRING([--with-sina-client-secret], [Sina client secret])], [sina_client_secret=$withval], [sina_client_secret="bb66bd5dacdaa84ee2917e1162359b48"]) AC_SUBST(SINA_CLIENT_ID, ["$sina_client_id"]) AC_SUBST(SINA_CLIENT_SECRET, ["$sina_client_secret"]) # Set Sohu client id/secret AC_ARG_WITH(sohu-client-id, [AS_HELP_STRING([--with-sohu-client-id], [Sohu client id])], [sohu_client_id=$withval], [sohu_client_id="dXucVvzJseF3wFfeDBqE"]) AC_ARG_WITH(sohu-client-secret, [AS_HELP_STRING([--with-sohu-client-secret], [Sohu client secret])], [sohu_client_secret=$withval], [sohu_client_secret="XuOg9=djoUMA%BRRPO)X=(8FExQz8T$9DahIj=9u"]) AC_SUBST(SOHU_CLIENT_ID, ["$sohu_client_id"]) AC_SUBST(SOHU_CLIENT_SECRET, ["$sohu_client_secret"]) # Set Windows Live client id AC_ARG_WITH(windows-live-client-id, [AS_HELP_STRING([--with-windows-live-client-id], [Windows Live client ID])], [windows_live_client_id=$withval], [windows_live_client_id="00000000480CBF28"]) AC_SUBST(WINDOWS_LIVE_CLIENT_ID, ["$windows_live_client_id"]) AC_CONFIG_FILES([ data/providers/facebook.provider.in data/providers/flickr.provider.in data/providers/foursquare.provider.in data/providers/google.provider.in data/providers/identica.provider.in data/providers/linkedin.provider.in data/providers/instagram.provider.in data/providers/sina.provider.in data/providers/sohu.provider.in data/providers/twitter.provider.in data/providers/windows-live.provider.in Makefile po/Makefile.in qml/Makefile ]) AC_OUTPUT account-plugins-0.11+14.04.20140409.1/data/0000755000015301777760000000000012321305764020222 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/data/webkit-options/0000755000015301777760000000000012321305764023200 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/data/webkit-options/login.yahoo.com.conf0000644000015301777760000000011112321305022027026 0ustar pbusernogroup00000000000000UsernameField = input[name="login"] PasswordField = input[name="passwd"] account-plugins-0.11+14.04.20140409.1/data/webkit-options/api.weibo.com.conf0000644000015301777760000000011212321305022026456 0ustar pbusernogroup00000000000000UsernameField = input[name="userId"] PasswordField = input[name="passwd"] account-plugins-0.11+14.04.20140409.1/data/webkit-options/accounts.google.com.conf0000644000015301777760000000051312321305022027700 0ustar pbusernogroup00000000000000ViewportWidth = 480 ViewportHeight = 420 UsernameField = input[name="Email"] PasswordField = input[name="Passwd"] # Accept all https URLs, and add as exceptions those http only # URLs which are used in some countries. # See https://bugs.launchpad.net/bugs/1074733 AllowedUrls = (https://.*|http://[^/]*google\\.[^.]+/accounts/.*) account-plugins-0.11+14.04.20140409.1/data/webkit-options/foursquare.com.conf0000644000015301777760000000011212321305022026775 0ustar pbusernogroup00000000000000UsernameField = input[id="username"] PasswordField = input[id="password"] account-plugins-0.11+14.04.20140409.1/data/webkit-options/www.facebook.com.conf0000644000015301777760000000022712321305022027204 0ustar pbusernogroup00000000000000ViewportWidth = 420 ViewportHeight = 320 UsernameField = input[name="email"] PasswordField = input[name="pass"] #ZoomFactor = 2 #PreferredWidth = 420 account-plugins-0.11+14.04.20140409.1/data/webkit-options/identi.ca.conf0000644000015301777760000000051312321305022025667 0ustar pbusernogroup00000000000000UsernameField = input[name="nickname"] PasswordField = input[name="password"] # Force mobile version, so that layout does not scroll horizonally # https://bugs.launchpad.net/1051596 UserAgent = Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3 account-plugins-0.11+14.04.20140409.1/data/webkit-options/www.linkedin.com.conf0000644000015301777760000000050412321305022027226 0ustar pbusernogroup00000000000000UsernameField = input[name="session_key"] VerticalScrollBar = alwaysOn # Force mobile version, so that layout does not scroll horizonally # https://bugs.launchpad.net/1051596 UserAgent = Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3 account-plugins-0.11+14.04.20140409.1/data/webkit-options/api.instagram.com.conf0000644000015301777760000000011212321305022027336 0ustar pbusernogroup00000000000000UsernameField = input[id="username"] PasswordField = input[id="password"] account-plugins-0.11+14.04.20140409.1/data/webkit-options/login.live.com.conf0000644000015301777760000000011612321305022026653 0ustar pbusernogroup00000000000000ViewportWidth = 420 ViewportHeight = 320 UsernameField = input[name="login"] account-plugins-0.11+14.04.20140409.1/data/webkit-options/api.t.sohu.com.conf0000644000015301777760000000011312321305022026572 0ustar pbusernogroup00000000000000UsernameField = input[name="email"] PasswordField = input[name="password"] account-plugins-0.11+14.04.20140409.1/data/webkit-options/api.twitter.com.conf0000644000015301777760000000012312321305022027055 0ustar pbusernogroup00000000000000UsernameField = input[id="username_or_email"] PasswordField = input[id="password"] account-plugins-0.11+14.04.20140409.1/data/services/0000755000015301777760000000000012321305764022045 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/data/services/google-drive.service.in0000644000015301777760000000140012321305022026375 0ustar pbusernogroup00000000000000 documents GoogleDrive icon_google_docs google account-plugins account-plugins-0.11+14.04.20140409.1/data/services/flickr-sharing.service.in0000644000015301777760000000034112321305022026720 0ustar pbusernogroup00000000000000 sharing Flickr flickr flickr account-plugins account-plugins-0.11+14.04.20140409.1/data/services/picasa.service.in0000644000015301777760000000136212321305022025261 0ustar pbusernogroup00000000000000 sharing Picasa icon_picasa google account-plugins account-plugins-0.11+14.04.20140409.1/data/services/facebook-microblog.service.in0000644000015301777760000000120012321305022027534 0ustar pbusernogroup00000000000000 microblogging Facebook facebook facebook account-plugins account-plugins-0.11+14.04.20140409.1/data/services/linkedin-microblog.service.in0000644000015301777760000000120212321305022027562 0ustar pbusernogroup00000000000000 microblogging LinkedIn® linkedin linkedin account-plugins account-plugins-0.11+14.04.20140409.1/data/services/instagram-microblog.service.in0000644000015301777760000000120512321305022027755 0ustar pbusernogroup00000000000000 microblogging Instagram instagram instagram account-plugins account-plugins-0.11+14.04.20140409.1/data/services/facebook-contacts.service.in0000644000015301777760000000035312321305022027405 0ustar pbusernogroup00000000000000 contacts Facebook facebook facebook account-plugins account-plugins-0.11+14.04.20140409.1/data/services/flickr-microblog.service.in0000644000015301777760000000077412321305022027254 0ustar pbusernogroup00000000000000 microblogging Flickr flickr flickr account-plugins account-plugins-0.11+14.04.20140409.1/data/services/facebook-im.service.in0000644000015301777760000000133512321305022026175 0ustar pbusernogroup00000000000000 IM Facebook facebook facebook account-plugins account-plugins-0.11+14.04.20140409.1/data/services/identica-microblog.service.in0000644000015301777760000000120012321305022027543 0ustar pbusernogroup00000000000000 microblogging identi.ca identica identica account-plugins account-plugins-0.11+14.04.20140409.1/data/services/sina-microblog.service.in0000644000015301777760000000034112321305022026722 0ustar pbusernogroup00000000000000 microblogging Sina sina sina account-plugins account-plugins-0.11+14.04.20140409.1/data/services/facebook-sharing.service.in0000644000015301777760000000071712321305022027226 0ustar pbusernogroup00000000000000 sharing Facebook facebook facebook account-plugins account-plugins-0.11+14.04.20140409.1/data/services/google-im.service.in0000644000015301777760000000167612321305022025710 0ustar pbusernogroup00000000000000 IM GoogleTalk im-google-talk google account-plugins account-plugins-0.11+14.04.20140409.1/data/services/wlm.service.in0000644000015301777760000000140612321305022024617 0ustar pbusernogroup00000000000000 IM Windows Live Messenger msn windows-live account-plugins account-plugins-0.11+14.04.20140409.1/data/services/sohu-microblog.service.in0000644000015301777760000000034112321305022026746 0ustar pbusernogroup00000000000000 microblogging Sohu sohu sohu account-plugins account-plugins-0.11+14.04.20140409.1/data/services/foursquare-microblog.service.in0000644000015301777760000000101312321305022030161 0ustar pbusernogroup00000000000000 microblogging Foursquare foursquare foursquare account-plugins account-plugins-0.11+14.04.20140409.1/data/services/twitter-microblog.service.in0000644000015301777760000000117412321305022027477 0ustar pbusernogroup00000000000000 microblogging Twitter twitter twitter account-plugins account-plugins-0.11+14.04.20140409.1/data/providers/0000755000015301777760000000000012321305764022237 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/data/providers/instagram.provider.in.in0000644000015301777760000000200712321305022026774 0ustar pbusernogroup00000000000000 Instagram instagram *instagram\.com account-plugins generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/facebook.provider.in.in0000644000015301777760000000204012321305022026555 0ustar pbusernogroup00000000000000 Facebook facebook account-plugins .*facebook\.com generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/sina.provider.in.in0000644000015301777760000000163712321305022025751 0ustar pbusernogroup00000000000000 Sina sina account-plugins .*weibo\.com generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/flickr.provider.in.in0000644000015301777760000000212012321305022026255 0ustar pbusernogroup00000000000000 Flickr flickr account-plugins .*flickr\.com generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/foursquare.provider.in.in0000644000015301777760000000155412321305022027211 0ustar pbusernogroup00000000000000 Foursquare foursquare account-plugins .*foursquare\.com generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/linkedin.provider.in.in0000644000015301777760000000215012321305022026603 0ustar pbusernogroup00000000000000 LinkedIn® linkedin *linkedin\.com account-plugins generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/identica.provider.in.in0000644000015301777760000000211012321305022026562 0ustar pbusernogroup00000000000000 identi.ca identica account-plugins .*identi\.ca generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/google.provider.in.in0000644000015301777760000000314012321305022026262 0ustar pbusernogroup00000000000000 Google <_description>Includes Gmail, Google Docs, Google+, YouTube and Picasa google account-plugins .*google\.com account-plugins-0.11+14.04.20140409.1/data/providers/sohu.provider.in.in0000644000015301777760000000174612321305022025776 0ustar pbusernogroup00000000000000 Sohu sohu account-plugins .*t\.sohu\.com generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/windows-live.provider.in.in0000644000015301777760000000177012321305022027444 0ustar pbusernogroup00000000000000 Windows Live live account-plugins .*live\.com generic-oauth account-plugins-0.11+14.04.20140409.1/data/providers/twitter.provider.in.in0000644000015301777760000000174712321305022026523 0ustar pbusernogroup00000000000000 Twitter twitter account-plugins generic-oauth .*twitter\.com account-plugins-0.11+14.04.20140409.1/NEWS0000644000015301777760000000347712321305022020006 0ustar pbusernogroup00000000000000UOA account plugins NEWS Version 0.9 ----------- * Do not reveal Google secret API key: https://launchpad.net/bugs/1064293 * Add COPYING, using GNU GPL version 2: https://launchpad.net/bugs/1062194 * Use intltool for internationalization support: https://launchpad.net/bugs/1061433 * Request mobile version of identi.ca: https://launchpad.net/bugs/1051596 Version 0.8 ----------- * Add icon for SIP providers: https://launchpad.net/bugs/1026631 https://launchpad.net/bugs/1040091 * Remove Facebook and Google account creations scripts https://launchpad.net/bugs/1048638 Version 0.7 ----------- * Update for latest signon-ui changes https://launchpad.net/bugs/1041744 Version 0.6 ----------- * Use the secure endpoint for Flickr: https://launchpad.net/bugs/1031169 * Port to Python 3 * Google: Request access to user profile * Whitelist the Windows Live certificate * Do not capture password during Windows Live login Version 0.5 ----------- * Fix custom prefix installation: https://launchpad.net/bugs/1024274 * Use new API to get credentials ID * Facebook: Remove deprecated "offline_access" scope, add "xmpp_access" scope, add IM service * Set read-only mission control parameters * Windows Live: Add plugin for support, use refresh token * Google: Add IM service, use refresh tokens * Add Gwibber-specific settings for Foursquare and identi.ca Version 0.4 ----------- * Capture Flickr and Twitter usernames * Add updated provider icons * Allow client keys and secrets to be overridden during configure * Add Foursquare, identica, Sina, Sohu and Twitter plugins * Add Gwibber-specific settings for Flickr and Twitter * Add description to Google provider file Version 0.3 ----------- * Add Flickr plugin * Add icons for Facebook and Google Version 0.2 ----------- * Initial release, with Facebook and Google plugins account-plugins-0.11+14.04.20140409.1/po/0000755000015301777760000000000012321305764017727 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/po/POTFILES.skip0000644000015301777760000000033512321305022022030 0ustar pbusernogroup00000000000000data/services/facebook-microblog.service.in data/services/identica-microblog.service.in data/services/instagram-microblog.service.in data/services/linkedin-microblog.service.in data/services/twitter-microblog.service.in account-plugins-0.11+14.04.20140409.1/po/POTFILES.in0000644000015301777760000000007012321305022021464 0ustar pbusernogroup00000000000000[type: gettext/xml]data/providers/google.provider.in.in account-plugins-0.11+14.04.20140409.1/ChangeLog0000644000015301777760000000000012321305022021034 0ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/autogen.sh0000755000015301777760000000011312321305022021270 0ustar pbusernogroup00000000000000intltoolize --copy --force --automake && autoreconf -i && ./configure "$@" account-plugins-0.11+14.04.20140409.1/COPYING0000644000015301777760000004325412321305022020337 0ustar pbusernogroup00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. account-plugins-0.11+14.04.20140409.1/src/0000755000015301777760000000000012321305764020100 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/src/config.vapi0000644000015301777760000000304012321305022022206 0ustar pbusernogroup00000000000000/* * Copyright (C) 2012 Canonical, Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * * Authors: * Ken VanDine * David King */ [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] namespace Config { public const string TWITTER_CONSUMER_KEY; public const string TWITTER_CONSUMER_SECRET; public const string FACEBOOK_CLIENT_ID; public const string FLICKR_CONSUMER_KEY; public const string FLICKR_CONSUMER_SECRET; public const string GOOGLE_CLIENT_ID; public const string GOOGLE_CLIENT_SECRET; public const string FOURSQUARE_CLIENT_ID; public const string IDENTICA_CONSUMER_KEY; public const string IDENTICA_CONSUMER_SECRET; public const string SINA_CONSUMER_KEY; public const string SINA_CONSUMER_SECRET; public const string SOHU_CLIENT_ID; public const string SOHU_CLIENT_SECRET; public const string WINDOWS_LIVE_CLIENT_ID; } account-plugins-0.11+14.04.20140409.1/src/generic-oauth.vala0000644000015301777760000000177012321305022023467 0ustar pbusernogroup00000000000000/* * Copyright (C) 2012 Canonical, Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * * Authors: * Alberto Mardegan */ public class GenericOAuthPlugin : Ap.OAuthPlugin { public GenericOAuthPlugin (Ag.Account account) { Object (account: account); } } public GLib.Type ap_module_get_object_type () { return typeof (GenericOAuthPlugin); } account-plugins-0.11+14.04.20140409.1/src/google.vala0000644000015301777760000000350112321305022022203 0ustar pbusernogroup00000000000000/* * Copyright (C) 2012 Canonical, Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * * Authors: * Alberto Mardegan */ public class GooglePlugin : Ap.OAuthPlugin { public GooglePlugin (Ag.Account account) { Object (account: account); } construct { var oauth_params = new HashTable (str_hash, null); /* Note the evil trick here: Google uses a couple of non-standard OAuth * parameters: "access_type" and "approval_prompt"; the signon OAuth * plugin doesn't (yet?) give us a way to provide extra parameters, so * we fool it by appending them to the value of the "AuthPath". * * We need to specify "access_type=offline" if we want Google to return * us a refresh token. * The "approval_prompt=force" string forces Google to ask for * authentication. */ oauth_params.insert ("AuthPath", "o/oauth2/auth?access_type=offline&approval_prompt=force"); set_oauth_parameters (oauth_params); set_ignore_cookies (true); } } public GLib.Type ap_module_get_object_type () { return typeof (GooglePlugin); } account-plugins-0.11+14.04.20140409.1/m4/0000755000015301777760000000000012321305764017631 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/acinclude.m40000644000015301777760000000203712321305022021467 0ustar pbusernogroup00000000000000# -*- Mode: m4; indent-tabs-mode: nil; tab-width: 2 -*- # # Copyright (C) 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # Check whether the Vala compiler exists in `PATH'. If it is found, the # variable VALAC is set. Optionally a minimum release number of the # compiler can be requested. # # OVERRIDE_PROG_VALAC([MINIMUM-VERSION]) # -------------------------------- AC_DEFUN([OVERRIDE_PROG_VALAC], [AC_PATH_PROGS([VALAC], [$2], []) AS_IF([test -z "$VALAC"], [AC_MSG_ERROR([No Vala compiler found.])], [AS_IF([test -n "$1"], [AC_MSG_CHECKING([$VALAC is at least version $1]) am__vala_version=`$VALAC --version | sed 's/Vala *//'` AS_VERSION_COMPARE([$1], ["$am__vala_version"], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Vala $1 not found.])])])]) ]) account-plugins-0.11+14.04.20140409.1/AUTHORS0000644000015301777760000000006212321305022020342 0ustar pbusernogroup00000000000000Alberto Mardegan account-plugins-0.11+14.04.20140409.1/qml/0000755000015301777760000000000012321305764020102 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/qml/Makefile.am0000644000015301777760000000015512321305022022122 0ustar pbusernogroup00000000000000nobase_dist_qmlplugins_DATA = \ facebook/Main.qml \ flickr/Main.qml \ google/Main.qml \ twitter/Main.qml account-plugins-0.11+14.04.20140409.1/qml/flickr/0000755000015301777760000000000012321305764021354 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/qml/flickr/Main.qml0000644000015301777760000000025612321305022022741 0ustar pbusernogroup00000000000000import Ubuntu.OnlineAccounts.Plugin 1.0 OAuthMain { creationComponent: OAuth { function getUserName(reply) { return reply.username } } } account-plugins-0.11+14.04.20140409.1/qml/facebook/0000755000015301777760000000000012321305764021653 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/qml/facebook/Main.qml0000644000015301777760000000230112321305022023231 0ustar pbusernogroup00000000000000import Ubuntu.OnlineAccounts.Plugin 1.0 OAuthMain { creationComponent: OAuth { function completeCreation(reply) { console.log("Access token: " + reply.AccessToken) var http = new XMLHttpRequest() var url = "https://graph.facebook.com/me?access_token=" + reply.AccessToken; http.open("GET", url, true); http.onreadystatechange = function() { if (http.readyState === 4){ if (http.status == 200) { console.log("ok") console.log("response text: " + http.responseText) var response = JSON.parse(http.responseText) account.updateDisplayName(response.username) globalAccountService.updateSettings({ 'id': response.id }) account.synced.connect(finished) account.sync() } else { console.log("error: " + http.status) cancel() } } }; http.send(null); } } } account-plugins-0.11+14.04.20140409.1/qml/google/0000755000015301777760000000000012321305764021356 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/qml/google/Main.qml0000644000015301777760000000237112321305022022743 0ustar pbusernogroup00000000000000import Ubuntu.OnlineAccounts.Plugin 1.0 OAuthMain { creationComponent: OAuth { authenticationParameters: { "AuthPath": "o/oauth2/auth?access_type=offline&approval_prompt=force" } function completeCreation(reply) { console.log("Access token: " + reply.AccessToken) var http = new XMLHttpRequest() var url = "https://www.googleapis.com/oauth2/v3/userinfo"; http.open("POST", url, true); http.setRequestHeader("Authorization", "Bearer " + reply.AccessToken) http.onreadystatechange = function() { if (http.readyState === 4){ if (http.status == 200) { console.log("ok") console.log("response text: " + http.responseText) var response = JSON.parse(http.responseText) account.updateDisplayName(response.email) account.synced.connect(finished) account.sync() } else { console.log("error: " + http.status) cancel() } } }; http.send(null); } } } account-plugins-0.11+14.04.20140409.1/qml/twitter/0000755000015301777760000000000012321305764021604 5ustar pbusernogroup00000000000000account-plugins-0.11+14.04.20140409.1/qml/twitter/Main.qml0000644000015301777760000000006612321305022023170 0ustar pbusernogroup00000000000000import Ubuntu.OnlineAccounts.Plugin 1.0 OAuthMain {} account-plugins-0.11+14.04.20140409.1/README0000644000015301777760000000110612321305022020152 0ustar pbusernogroup00000000000000Account plugins for Ubuntu Online Accounts ------------------------------------------ This project contains the account configuration plugins for the credentials configuration panel: https://launchpad.net/online-accounts-gnome-control-center/ These plugins are responsible for creating and configuring online accounts. Dependencies ------------ The plugins depend on libaccount-plugin from online-accounts-gnome-control-center. Licence ------- The plugins are licensed under the GNU GPL version 2. Resources --------- https://launchpad.net/online-accounts-account-plugins/