diff options
| author | Ted Zlatanov | 2017-12-19 11:44:26 -0500 |
|---|---|---|
| committer | Ted Zlatanov | 2017-12-19 11:45:48 -0500 |
| commit | 16813e6faa32b1741685ee429132251846d253a3 (patch) | |
| tree | 89feddadef45818a5fa9dd497d32f0801e942c09 | |
| parent | 1d0a37f845dbdebee81bed4c3c104e752c95c44c (diff) | |
| download | emacs-16813e6faa32b1741685ee429132251846d253a3.tar.gz emacs-16813e6faa32b1741685ee429132251846d253a3.zip | |
* doc/misc/auth.texi (Help for users): Mention JSON backend.
| -rw-r--r-- | doc/misc/auth.texi | 13 |
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 | ||
| 87 | Similarly, the auth-source library supports multiple storage backend, | 87 | Similarly, the auth-source library supports multiple storage backend, |
| 88 | currently either the classic ``netrc'' backend, examples of which you | 88 | currently either the classic ``netrc'' backend, examples of which you |
| 89 | can see later in this document, the Secret Service API, and pass, the | 89 | can see later in this document, JSON files, the Secret Service API, and pass, the |
| 90 | standard unix password manager. This is done with EIEIO-based | 90 | standard unix password manager. This is done with EIEIO-based |
| 91 | backends and you can write your own if you want. | 91 | backends 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 | ||
| 174 | By adding multiple entries to @code{auth-sources} with a particular | 176 | 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 | |||
| 235 | earlier. Since Tramp has about 88 connection methods, this may be | 237 | earlier. Since Tramp has about 88 connection methods, this may be |
| 236 | necessary if you have an unusual (see earlier comment on those) setup. | 238 | necessary if you have an unusual (see earlier comment on those) setup. |
| 237 | 239 | ||
| 240 | The netrc format is directly translated into JSON, if you are into | ||
| 241 | that 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 | ||