After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681445 - Display UOA specific auth error
Display UOA specific auth error
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: UOA
2.33.x
Other Linux
: Normal enhancement
: 3.8
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-08 12:17 UTC by Guillaume Desmottes
Modified: 2012-10-09 14:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
display a special error message if UOA SSO account get an auth error (4.69 KB, patch)
2012-08-08 12:32 UTC, Guillaume Desmottes
none Details | Review
EmpathyRosterWindow: Add UOA specific error infobar (2.70 KB, patch)
2012-09-07 11:59 UTC, Xavier Claessens
committed Details | Review

Description Guillaume Desmottes 2012-08-08 12:17:35 UTC
If a UOA SSO account fails to connect because of an auth error, we should display a specific message and allow user to easily re-authorise the account.
Comment 1 Guillaume Desmottes 2012-08-08 12:32:15 UTC
Created attachment 220667 [details] [review]
display a special error message if UOA SSO account get an auth error
Comment 2 Xavier Claessens 2012-08-20 11:15:15 UTC
I don't like the way this is done. IMO telepathy should give a more precise error like TP_ERROR_NOT_AUTHORIZED, like that it would just be a matter of adding it to empathy-utils.c::create_errors_to_message_hash(). Looking at wocky logs it seems it knows the error is not-authorized but it raise a generic TP_ERROR_AUTHENTIFICATION_FAILED.

Note that there is a more serious issue: if I change my facebook pwd, or remove the Ubuntu app from my account, then gabble will fail to connect but in gnome-control-center it won't let me re-auth because SSO does not know the access token has been invalidated.

According the Mardy, if XMPP auth fails, we should call signon_auth_session_process() with "UiPolicy": RequestPasswordPolicy in the parameters.
Comment 3 Xavier Claessens 2012-08-20 15:25:53 UTC
(In reply to comment #2)
> Note that there is a more serious issue: if I change my facebook pwd, or remove
> the Ubuntu app from my account, then gabble will fail to connect but in
> gnome-control-center it won't let me re-auth because SSO does not know the
> access token has been invalidated.
> 
> According the Mardy, if XMPP auth fails, we should call
> signon_auth_session_process() with "UiPolicy": RequestPasswordPolicy in the
> parameters.

Fixed this.

Tbh I don't see what's wrong with the generic authentification failed message with the 3 buttons reconnect, edit and ignore.
Comment 4 Xavier Claessens 2012-09-07 11:59:36 UTC
Created attachment 223758 [details] [review]
EmpathyRosterWindow: Add UOA specific error infobar
Comment 5 Xavier Claessens 2012-09-07 12:01:05 UTC
Review of attachment 223758 [details] [review]:

Contains new string, commit after freeze.
Comment 6 Guillaume Desmottes 2012-10-09 14:21:02 UTC
Attachment 223758 [details] pushed as c98ab50 - EmpathyRosterWindow: Add UOA specific error infobar