aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc/auth.texi
diff options
context:
space:
mode:
authorDamien Cassou2017-04-03 21:36:03 +0200
committerTed Zlatanov2017-04-26 15:11:35 -0400
commit14ff8b1fb60459c4c5cb147e07e3902dc569f8e0 (patch)
treef2200f9516a295cc6ae28593eb2ca12d5efee1dd /doc/misc/auth.texi
parentc2d4ed8f2ee18d5e3fb56b31c2e1b784b1ea70e0 (diff)
downloademacs-feature/auth-source-pass.tar.gz
emacs-feature/auth-source-pass.zip
auth-source-pass: Add documentation; fix tests and indentation.feature/auth-source-pass
* doc/misc/auth.texi: Document new integration with Pass. Use @itemize instead of @enumerate. * lisp/auth-source-pass.el: Fix indentation. (auth-source-pass--remove-directory-name): Remove. * test/lisp/auth-source-pass-tests.el: Adjust test macros.
Diffstat (limited to 'doc/misc/auth.texi')
-rw-r--r--doc/misc/auth.texi46
1 files changed, 39 insertions, 7 deletions
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi
index 29e55eda52c..94229e69f79 100644
--- a/doc/misc/auth.texi
+++ b/doc/misc/auth.texi
@@ -85,8 +85,9 @@ password (known as the secret).
85 85
86Similarly, the auth-source library supports multiple storage backend, 86Similarly, the auth-source library supports multiple storage backend,
87currently either the classic ``netrc'' backend, examples of which you 87currently either the classic ``netrc'' backend, examples of which you
88can see later in this document, or the Secret Service API@. This is 88can see later in this document, the Secret Service API, and pass, the
89done with EIEIO-based backends and you can write your own if you want. 89standard unix password manager. This is done with EIEIO-based
90backends and you can write your own if you want.
90 91
91@node Help for users 92@node Help for users
92@chapter Help for users 93@chapter Help for users
@@ -150,9 +151,9 @@ auth-source library is not loaded for some other reason.
150@defvar auth-sources 151@defvar auth-sources
151 152
152The @code{auth-sources} variable tells the auth-source library where 153The @code{auth-sources} variable tells the auth-source library where
153your netrc files or Secret Service API collection items live for a 154your netrc files, Secret Service API collection items, or your
154particular host and protocol. While you can get fancy, the default 155password store live for a particular host and protocol. While you can
155and simplest configuration is: 156get fancy, the default and simplest configuration is:
156 157
157@lisp 158@lisp
158;;; old default: required :host and :port, not needed anymore 159;;; old default: required :host and :port, not needed anymore
@@ -164,6 +165,9 @@ and simplest configuration is:
164;;; use the Secrets API @var{Login} collection 165;;; use the Secrets API @var{Login} collection
165;;; (@pxref{Secret Service API}) 166;;; (@pxref{Secret Service API})
166(setq auth-sources '("secrets:Login")) 167(setq auth-sources '("secrets:Login"))
168;;; use pass (@file{~/.password-store})
169;;; (@pxref{Pass, the Unix password store})
170(setq auth-sources '(password-store))
167@end lisp 171@end lisp
168 172
169By adding multiple entries to @code{auth-sources} with a particular 173By adding multiple entries to @code{auth-sources} with a particular
@@ -402,6 +406,34 @@ then fall back to @file{~/.authinfo.gpg}.
402 "~/.authinfo.gpg")) 406 "~/.authinfo.gpg"))
403@end example 407@end example
404 408
409@node Pass, the Unix password store
410@chapter Pass, the Unix password store
411
412@uref{http://www.passwordstore.org,,The standard unix password
413manager} (or just @code{pass}) stores your passwords in
414@code{gpg}-protected files following the Unix philosophy.
415
416Emacs integration of @code{pass} follows the first approach suggested
417by the pass project itself for data organization to find data. This
418means that the filename of the file containing the password for a user
419on a particular host must contain the host name. The file itself must
420contain the password on the first line, as well as a @code{username}
421field containing the username on a subsequent line. A @code{port}
422field can be used to differentiate the authentication data for several
423services with the same username on the same host.
424
425Users of @code{pass} may also be interested in functionality provided
426by other Emacs packages dealing with pass:
427
428@itemize
429@item
430@uref{https://git.zx2c4.com/password-store/tree/contrib/emacs/password-store.el,,password-store}: library wrapping @code{pass};
431@item
432@uref{https://github.com/NicolasPetton/pass,,pass}: major mode to manipulate the store and edit entries;
433@item
434@uref{https://github.com/jabranham/helm-pass,,helm-pass}: helm interface for pass.
435@end itemize
436
405@node Help for developers 437@node Help for developers
406@chapter Help for developers 438@chapter Help for developers
407 439
@@ -517,14 +549,14 @@ or EasyPG Assistant
517 549
518To quick start, here are some questions: 550To quick start, here are some questions:
519 551
520@enumerate 552@itemize
521@item 553@item
522Do you use GnuPG version 2 instead of GnuPG version 1? 554Do you use GnuPG version 2 instead of GnuPG version 1?
523@item 555@item
524Do you use symmetric encryption rather than public key encryption? 556Do you use symmetric encryption rather than public key encryption?
525@item 557@item
526Do you want to use gpg-agent? 558Do you want to use gpg-agent?
527@end enumerate 559@end itemize
528 560
529Here are configurations depending on your answers: 561Here are configurations depending on your answers:
530 562