From 16813e6faa32b1741685ee429132251846d253a3 Mon Sep 17 00:00:00 2001 From: Ted Zlatanov Date: Tue, 19 Dec 2017 11:44:26 -0500 Subject: [PATCH] * doc/misc/auth.texi (Help for users): Mention JSON backend. --- doc/misc/auth.texi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi index cfc62a9f922..16ce60199d6 100644 --- a/doc/misc/auth.texi +++ b/doc/misc/auth.texi @@ -86,7 +86,7 @@ password (known as the secret). Similarly, the auth-source library supports multiple storage backend, currently either the classic ``netrc'' backend, examples of which you -can see later in this document, the Secret Service API, and pass, the +can see later in this document, JSON files, the Secret Service API, and pass, the standard unix password manager. This is done with EIEIO-based backends and you can write your own if you want. @@ -169,6 +169,8 @@ get fancy, the default and simplest configuration is: ;;; use pass (@file{~/.password-store}) ;;; (@pxref{The Unix password store}) (setq auth-sources '(password-store)) +;;; JSON data in format [{ "machine": "SERVER", "login": "USER", "password": "PASSWORD" }...] +(setq auth-sources '("~/.authinfo.json.gpg")) @end lisp By adding multiple entries to @code{auth-sources} with a particular @@ -235,6 +237,15 @@ don't use a port entry, you match any Tramp method, as explained earlier. Since Tramp has about 88 connection methods, this may be necessary if you have an unusual (see earlier comment on those) setup. +The netrc format is directly translated into JSON, if you are into +that sort of thing. Just point to a JSON file with entries like this: + +@example +[ + { "machine": "yourmachine.com", "port": "http", "login": "testuser", "password": "testpass" } +] +@end example + @node Multiple GMail accounts with Gnus @chapter Multiple GMail accounts with Gnus -- 2.39.2