aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/common/authentication.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not use deprecated EBook/ECal APIMilan Crha2011-06-141-455/+0
|
* Bug #502188 - Store 'Remember password' for calendarsMilan Crha2011-04-211-4/+38
|
* Bug 647698 - Selected calendar doesnt authenticate after offline/onlineMatthew Barnes2011-04-141-17/+39
| | | | | | | | | | | | | | | | | | | | | | | | When I wrote e_load_cal_source_async() it didn't occur to me that a calendar backend may emit "auth-required" after the initial connection attempt. And because I was passing the allocated context data for the asynchronous load operation to e_cal_set_auth_func(), meaning the data gets freed at the end of the load operation, I was then calling e_cal_set_auth_func(cal, NULL, NULL) after the initial authentication was complete so that the ECal would not try to access the freed context data after the load operation finished. But that turned out to break the case of switching to offline mode, then back to online mode. Most calendar backends need to re-authenticate when they come back online. This commit instead passes data to the authentication function by way of g_object_set_data_full() so that the authentication function can be left in place for the duration of the ECal instance. Note that e_cal_set_auth_func() lacks a GDestroyNotify argument for the user data passed to it, which rules out passing any kind of allocated data structure. This is an API design flaw, in my opinion. But g_object_set_data_full() *does* take a GDestroyNotify argument.
* Bug #635673 - Stack overflow when opening slow calendarMilan Crha2010-11-241-0/+1
|
* Bug #627333 - Cannot cancel password dialog for a calendarMilan Crha2010-08-271-0/+3
|
* Add e_load_cal_source_async().Matthew Barnes2010-08-241-2/+271
| | | | | | | | | | | | | | | | | Similar to e_load_book_source_async() in libedataserverui (and may wind up there eventually). This replaces e_auth_new_cal_from_source(). void e_load_cal_source_async (ESource *source, ECalSourceType source_type, icaltimezone *default_zone, GtkWindow *parent, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); ECal * e_load_cal_source_finish (ESource *source, GAsyncResult *result, GError **error);
* Remove unused e_auth_new_cal_from_uri().Matthew Barnes2010-08-201-65/+0
|
* Coding style and whitespace cleanup.Matthew Barnes2010-06-201-6/+15
|
* Make authentication functionality availableGustavo Noronha Silva2010-01-271-5/+5
| | | | | | | This involves renaming the calendar auth-related functions to have a prefix, and shipping the headers. Part of https://bugzilla.gnome.org/show_bug.cgi?id=608175
* Fix excessive whitespace.Matthew Barnes2009-07-131-1/+0
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-10/+10
|
* Remove trailing whitespace, again.Matthew Barnes2009-05-291-2/+2
|
* ** Fix for bug #303738Milan Crha2009-01-151-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-15 Milan Crha <mcrha@redhat.com> ** Fix for bug #303738 * gui/gnome-cal.c: (client_cal_opened_cb), (default_client_cal_opened_cb): * gui/e-memos.c: (client_cal_opened_cb), (default_client_cal_opened_cb): * gui/e-tasks.c: (client_cal_opened_cb), (default_client_cal_opened_cb): Forget password on AuthFailed or AuthRequired and try to reopen on AuthFailed status, which will ask for a password again. * gui/comp-editor-factory.c: (cal_opened_cb): Show "Authentication Required" on such status returned. * common/authentication.c: (auth_cal_forget_password): Do not free memory which hold ECal. Also always forget password for calendar with the URL key. svn path=/trunk/; revision=37080
* License ChangesSankarasivasubramanian Pasupathilingam2008-08-271-14/+14
| | | | svn path=/trunk/; revision=36116
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* Use <glib/gi18n.h> instead of <bonobo/bonobo-i18n.h>.Matthew Barnes2008-06-111-1/+1
| | | | | | | | | | | | | | | | | | | 2008-06-10 Matthew Barnes <mbarnes@redhat.com> * addressbook/gui/component/addressbook-component.c: * calendar/common/authentication.c: * calendar/gui/calendar-component.c: * calendar/gui/comp-editor-factory.c: * calendar/gui/dialogs/copy-source-dialog.c: * calendar/gui/dialogs/select-source-dialog.c: * calendar/gui/memos-component.c: * calendar/gui/migration.c: * calendar/gui/tasks-component.c: * shell/test/evolution-test-component.c: Use <glib/gi18n.h> instead of <bonobo/bonobo-i18n.h>. svn path=/trunk/; revision=35625
* ** Fix for bnc #160049. Patch from OpenSUSE.Srinivasa Ragavan2008-02-181-0/+39
| | | | | | | | | | | | | | | | | 2008-02-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bnc #160049. Patch from OpenSUSE. * common/authentication.c: (build_pass_key), (auth_cal_forget_password): * common/authentication.h: * gui/e-tasks.c: (client_cal_opened_cb), (default_client_cal_opened_cb): * gui/gnome-cal.c: (client_cal_opened_cb): svn path=/trunk/; revision=35035
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-5/+5
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-1/+1
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* Include <libedataserver/e-source.h> to fix implicit declaration ofMatthew Barnes2007-08-011-0/+1
| | | | | | | | | | 2007-07-31 Matthew Barnes <mbarnes@redhat.com> * common/authentication.c: Include <libedataserver/e-source.h> to fix implicit declaration of e_source_get_duped_property(). svn path=/trunk/; revision=33915
* Fixes a memory corruption.Chenthill Palanisamy2007-07-301-5/+5
| | | | svn path=/trunk/; revision=33899
* Make mailer depend on libedataserverui.Hans Petter Jansson2005-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-23 Hans Petter Jansson <hpj@novell.com> * configure.in: Make mailer depend on libedataserverui. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * Makefile.am (eutilinclude_HEADERS) (libeutil_la_SOURCES): Remove e-passwords from here, it now lives in libedataserverui. * e-passwords.[ch]: Removed. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * gui/component/addressbook-view.c: * gui/component/addressbook.c: Include <libedataserverui/e-passwords.h>. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * common/authentication.c: * gui/e-pub-utils.c: * gui/alarm-notify/alarm-notify.c: * gui/alarm-notify/notify-main.c: * gui/dialogs/url-editor-dialog.c: Include <libedataserverui/e-passwords.h>. * gui/itip-utils.c: Remove e-passwords.h include, it's not needed. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * mail-session.c: * mail-config.c: Include <libedataserverui/e-passwords.h>. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * gui/component.c: * lib/e-cert-db.c: * lib/e-pkcs12.c: Include <libedataserverui/e-passwords.h>. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * e-shell-window-commands.c: * e-shell.c: * main.c: Include <libedataserverui/e-passwords.h>. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * camel-gw-listener.c: Include <libedataserverui/e-passwords.h>. 2005-02-23 Hans Petter Jansson <hpj@novell.com> * send-options.c: Include <libedataserverui/e-passwords.h>. svn path=/trunk/; revision=28871
* Fixes #65932Rodrigo Moya2004-10-071-10/+51
| | | | | | | | | | | | | | | | 2004-10-06 Rodrigo Moya <rodrigo@novell.com> Fixes #65932 * common/authentication.c: keep a hash table of all the source lists. (auth_new_cal_from_uri): do a search in the source list for the given URI, and use that ESource if we find it. Also, keep the hash table of source lists up to date. * gui/comp-editor-factory.c (cal_opened_cb): don't assert on error cases, just display an error dialog. svn path=/trunk/; revision=27498
* constify the strings to remove a warning.Not Zed2004-08-301-3/+3
| | | | | | | | | | | | | | | 2004-08-27 Not Zed <NotZed@Ximian.com> * common/authentication.c (auth_func_cb): constify the strings to remove a warning. ** See bug #64856 (workaround). * common/authentication.c (auth_func_cb): * gui/e-pub-utils.c(e_pub_publish): add ONLINE flag to password request. svn path=/trunk/; revision=27077
* epasswords api change.Not Zed2004-08-121-2/+2
| | | | | | | | | 2004-08-10 Not Zed <NotZed@Ximian.com> * gui/e-pub-utils.c (e_pub_publish): * common/authentication.c (auth_func_cb): epasswords api change. svn path=/trunk/; revision=26882
* include config.h. See #61395.Not Zed2004-07-221-0/+4
| | | | | | | | | | | | | | 2004-07-20 Not Zed <NotZed@Ximian.com> * gui/e-cal-model.c: * importers/icalendar-importer.c: * gui/dialogs/select-source-dialog.c: * gui/dialogs/copy-source-dialog.c: * gui/alarm-notify/util.c: * common/authentication.c: * gui/migration.c: include config.h. See #61395. svn path=/trunk/; revision=26694
* read the "auth-domain" property to use as component name for e-passwordSivaiah Nallagatla2004-05-251-2/+9
| | | | | | | | | | 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com> * common/authentication.c (auth_func_cb) : read the "auth-domain" property to use as component name for e-password calls instead of hard coded component name svn path=/trunk/; revision=26074
* call first e_passwords_get_password before calling _ask_password.Rodrigo Moya2004-02-181-3/+8
| | | | | | | | | 2004-02-18 Rodrigo Moya <rodrigo@ximian.com> * common/authentication.c (auth_func_cb): call first e_passwords_get_password before calling _ask_password. svn path=/trunk/; revision=24777
* use new cal auth functionsJP Rosevear2004-02-051-0/+12
| | | | | | | | | | | | | | 2004-02-04 JP Rosevear <jpr@ximian.com> * importers/icalendar-importer.c (gnome_calendar_import_data_fn): use new cal auth functions * common/authentication.c (auth_new_cal_from_default): get a default calendar with auth * common/authentication.h: add proto svn path=/trunk/; revision=24621
* check return value from e_cal_new().Rodrigo Moya2004-01-151-1/+2
| | | | | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * common/authentication.c (auth_new_cal_from_source): check return value from e_cal_new(). * gui/gnome-cal.c (gnome_calendar_construct): if there is no default tasks folder, don't create the ECal from it. svn path=/trunk/; revision=24219
* new files for managing interactive authentication with backends.Rodrigo Moya2003-12-221-0/+73
2003-12-22 Rodrigo Moya <rodrigo@ximian.com> * common/authentication.[ch]: new files for managing interactive authentication with backends. * common/Makefile.am: build new private library. * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): * gui/dialogs/event-page.c (source_changed_cb): * gui/dialogs/task-page.c (source_changed_cb): * gui/dialogs/copy-source-dialog.c (copy_source): * gui/calendar-component.c (setup_create_ecal): * gui/calendar-offline-handler.c (backend_go_offline, backend_go_online, calendar_offline_handler_init): * gui/comp-editor-factory.c (open_client): * gui/e-itip-control.c (start_calendar_server): * gui/e-tasks.c (e_tasks_add_todo_uri): * gui/gnome-cal.c (gnome_calendar_construct, gnome_calendar_add_event_uri): * gui/tasks-component.c (setup_create_ecal): * importers/icalendar-importer.c (load_file_fn, vcal_load_file_fn, gnome_calendar_import_data_fn): create the ECal's via the auth_new_cal_from* functions in the authentication module. * gui/alarm-notify/Makefile.am: * gui/Makefile.am: * importers/Makefile.am: link new private library. * Makefile.am: added new directory to the build. svn path=/trunk/; revision=23999