aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorTed Zlatanov2017-12-19 11:44:26 -0500
committerTed Zlatanov2017-12-19 11:45:48 -0500
commit16813e6faa32b1741685ee429132251846d253a3 (patch)
tree89feddadef45818a5fa9dd497d32f0801e942c09 /doc/misc
parent1d0a37f845dbdebee81bed4c3c104e752c95c44c (diff)
downloademacs-16813e6faa32b1741685ee429132251846d253a3.tar.gz
emacs-16813e6faa32b1741685ee429132251846d253a3.zip
* doc/misc/auth.texi (Help for users): Mention JSON backend.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/auth.texi13
1 files changed, 12 insertions, 1 deletions
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).
86 86
87Similarly, the auth-source library supports multiple storage backend, 87Similarly, the auth-source library supports multiple storage backend,
88currently either the classic ``netrc'' backend, examples of which you 88currently either the classic ``netrc'' backend, examples of which you
89can see later in this document, the Secret Service API, and pass, the 89can see later in this document, JSON files, the Secret Service API, and pass, the
90standard unix password manager. This is done with EIEIO-based 90standard unix password manager. This is done with EIEIO-based
91backends and you can write your own if you want. 91backends and you can write your own if you want.
92 92
@@ -169,6 +169,8 @@ get fancy, the default and simplest configuration is:
169;;; use pass (@file{~/.password-store}) 169;;; use pass (@file{~/.password-store})
170;;; (@pxref{The Unix password store}) 170;;; (@pxref{The Unix password store})
171(setq auth-sources '(password-store)) 171(setq auth-sources '(password-store))
172;;; JSON data in format [{ "machine": "SERVER", "login": "USER", "password": "PASSWORD" }...]
173(setq auth-sources '("~/.authinfo.json.gpg"))
172@end lisp 174@end lisp
173 175
174By adding multiple entries to @code{auth-sources} with a particular 176By 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
235earlier. Since Tramp has about 88 connection methods, this may be 237earlier. Since Tramp has about 88 connection methods, this may be
236necessary if you have an unusual (see earlier comment on those) setup. 238necessary if you have an unusual (see earlier comment on those) setup.
237 239
240The netrc format is directly translated into JSON, if you are into
241that sort of thing. Just point to a JSON file with entries like this:
242
243@example
244[
245 { "machine": "yourmachine.com", "port": "http", "login": "testuser", "password": "testpass" }
246]
247@end example
248
238@node Multiple GMail accounts with Gnus 249@node Multiple GMail accounts with Gnus
239@chapter Multiple GMail accounts with Gnus 250@chapter Multiple GMail accounts with Gnus
240 251