Bug 24868

Summary: Should be able to save an account without its password
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: tp-specAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: bram, om26er, philippe.gauthier, rafael
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 14003    
Bug Blocks:    

Description Guillaume Desmottes 2009-11-03 02:29:20 UTC
Lot of Empathy users have asked to be able to create an account without saving its password. Password will be then asked when trying to connect. It's currently not possible as MC will consider such account as invalid.

See https://bugzilla.gnome.org/show_bug.cgi?id=586562
Comment 1 Simon McVittie 2010-03-09 08:04:28 UTC
The APIs currently used by MC assume that all necessary parameters to connect to an account are supplied up-front. This isn't the case if passwords aren't saved.

After API for interactive credentials prompting has been designed (Bug #14003) and added to connection managers, the password can disappear from the connection managers' set of required parameters, which will in turn mean that an account with no password can be considered "valid".

Leaving this open as a metabug, but reassigning to telepathy-spec (it's not really MC's fault).
Comment 2 Eitan Isaacson 2010-06-14 17:33:58 UTC
telepathy-gabble now does not require 'password' up front. Of course other CMs might..
Comment 3 Philippe Gauthier 2010-06-23 17:09:22 UTC
There is also the case where the password is an empty string. I can't say if the problem is in the GUI side (Empathy) for this case. For example, my SIP registration doesn't use a password, but Empathy will not let me create an account with an empty password.
Comment 4 Simon McVittie 2010-11-15 06:59:25 UTC
(In reply to comment #3)
> There is also the case where the password is an empty string. I can't say if
> the problem is in the GUI side (Empathy) for this case.

Strictly speaking, yes this is Empathy's fault: Telepathy (and Mission Control) can distinguish between "password is not provided" and "password is present and is the empty string", but Empathy's account-editing UI doesn't.

I'm not sure how you'd do a sensible UI for this while allowing empty strings as passwords, though: the best I can come up with is this:

    SIP address:  [bob@example.com___]

    [x] Provide a password
    Password:     [******____________]

which is still a bit rubbish.

> For example, my SIP
> registration doesn't use a password, but Empathy will not let me create an
> account with an empty password.

I think you're actually trying to not provide a password, rather than providing the empty string :-)

In any case, telepathy-sofiasip does not mark the "password" parameter as REQUIRED, so this looks like Empathy's fault too.
Comment 5 Guillaume Desmottes 2011-03-28 06:40:26 UTC
This is now possible using the SASL API; closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.