Ted Zlatanov <[email protected]> writes:

> I agree 100% that this is useful.  Why not allow authinfo editing too?
> I think auth-source-create should just be a wrapper for
>
> ;;; 'create-if-missing should be supplemented by a global
> ;;; auth-source-create-if-missing which could be 'never, 'always, or nil
> (auth-source-user-or-password "password" server port user 'create-if-missing)

D'accord. Maybe we dont't need `auth-source-create-if-missing'; the last
arg `create-if' missing could be t or nil.

> and it would (theoretically) work for any editable backend.  At least
> for the two backends we've discussed (Secrets API and flat netrc files)
> this would work.  That would give us a stateless way to ensure that a
> password exists, prompting the user if necessary without interrupting
> the code flow, and allowing the user to specify their preference as well
> if they want to always or never create entries.

OK. We have a long weekend here in Germany (next 4 days); maybe I try an
implementation. I want to understand your code anyway :-)

> Ted

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to