diff options
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/auth.texi | 46 |
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 | ||
| 86 | Similarly, the auth-source library supports multiple storage backend, | 86 | Similarly, the auth-source library supports multiple storage backend, |
| 87 | currently either the classic ``netrc'' backend, examples of which you | 87 | currently either the classic ``netrc'' backend, examples of which you |
| 88 | can see later in this document, or the Secret Service API@. This is | 88 | can see later in this document, the Secret Service API, and pass, the |
| 89 | done with EIEIO-based backends and you can write your own if you want. | 89 | standard unix password manager. This is done with EIEIO-based |
| 90 | backends 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 | ||
| 152 | The @code{auth-sources} variable tells the auth-source library where | 153 | The @code{auth-sources} variable tells the auth-source library where |
| 153 | your netrc files or Secret Service API collection items live for a | 154 | your netrc files, Secret Service API collection items, or your |
| 154 | particular host and protocol. While you can get fancy, the default | 155 | password store live for a particular host and protocol. While you can |
| 155 | and simplest configuration is: | 156 | get 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 | ||
| 169 | By adding multiple entries to @code{auth-sources} with a particular | 173 | By 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 | ||
| 413 | manager} (or just @code{pass}) stores your passwords in | ||
| 414 | @code{gpg}-protected files following the Unix philosophy. | ||
| 415 | |||
| 416 | Emacs integration of @code{pass} follows the first approach suggested | ||
| 417 | by the pass project itself for data organization to find data. This | ||
| 418 | means that the filename of the file containing the password for a user | ||
| 419 | on a particular host must contain the host name. The file itself must | ||
| 420 | contain the password on the first line, as well as a @code{username} | ||
| 421 | field containing the username on a subsequent line. A @code{port} | ||
| 422 | field can be used to differentiate the authentication data for several | ||
| 423 | services with the same username on the same host. | ||
| 424 | |||
| 425 | Users of @code{pass} may also be interested in functionality provided | ||
| 426 | by 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 | ||
| 518 | To quick start, here are some questions: | 550 | To quick start, here are some questions: |
| 519 | 551 | ||
| 520 | @enumerate | 552 | @itemize |
| 521 | @item | 553 | @item |
| 522 | Do you use GnuPG version 2 instead of GnuPG version 1? | 554 | Do you use GnuPG version 2 instead of GnuPG version 1? |
| 523 | @item | 555 | @item |
| 524 | Do you use symmetric encryption rather than public key encryption? | 556 | Do you use symmetric encryption rather than public key encryption? |
| 525 | @item | 557 | @item |
| 526 | Do you want to use gpg-agent? | 558 | Do you want to use gpg-agent? |
| 527 | @end enumerate | 559 | @end itemize |
| 528 | 560 | ||
| 529 | Here are configurations depending on your answers: | 561 | Here are configurations depending on your answers: |
| 530 | 562 | ||