emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 16813e6 2/2: * doc/misc/auth.texi (Help for users):


From: Teodor Zlatanov
Subject: [Emacs-diffs] master 16813e6 2/2: * doc/misc/auth.texi (Help for users): Mention JSON backend.
Date: Tue, 19 Dec 2017 11:46:07 -0500 (EST)

branch: master
commit 16813e6faa32b1741685ee429132251846d253a3
Author: Ted Zlatanov <address@hidden>
Commit: Ted Zlatanov <address@hidden>

    * 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 cfc62a9..16ce601 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:
+
address@hidden
+[
+ { "machine": "yourmachine.com", "port": "http", "login": "testuser", 
"password": "testpass" }
+]
address@hidden example
+
 @node Multiple GMail accounts with Gnus
 @chapter Multiple GMail accounts with Gnus
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]