]> git.eshelyaron.com Git - emacs.git/commitdiff
New node Authentication in the Emacs manual
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 26 Jan 2019 15:46:54 +0000 (16:46 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 26 Jan 2019 15:46:54 +0000 (16:46 +0100)
* doc/emacs/custom.texi (Customization):
* doc/emacs/emacs.texi (Top): Add node Authentication.

doc/emacs/custom.texi
doc/emacs/emacs.texi

index 4aaf58cc264eda17e24294849367f576853f4889..32706f3868d6d6d8dac52e6ad11c94ff93832253 100644 (file)
@@ -32,6 +32,8 @@ Reference Manual}.
                           By changing them, you can redefine keys.
 * Init File::           How to write common customizations in the
                           initialization file.
+* Authentication::      Keeping persistent authentication information.
+
 @end menu
 
 @node Easy Customization
@@ -2609,3 +2611,39 @@ instance:
 
 @noindent
 Type @kbd{C-q}, followed by the key you want to bind, to insert @var{char}.
+
+@node Authentication
+@section Keeping Persistent Authentication Information
+@cindex ~/.authinfo file
+@cindex ~/.authinfo.gpg file
+@cindex ~/.netrc file
+
+  Some Emacs packages, which connect to other services, require
+authentication (@pxref{Passwords}), e.g., @ref{Top, Gnus,, gnus, The
+Gnus Manual}, or @ref{Top, Tramp,, tramp, The Tramp Manual}.  Because
+it might be annoying to provide the same user name and password again
+and again, Emacs offers to keep this information persistent via the
+auth-source library.
+
+  Per default, this information is taken from the file
+@file{~/.authinfo} or @file{~/.authinfo.gpg} or @file{~/.netrc}.
+These files have a syntax similar to netrc files as known from the ftp
+program, like
+
+@example
+machine @var{mymachine} login @var{myloginname} password @var{mypassword} port @var{myport}
+@end example
+
+  Similarly, the auth-source library supports multiple storage
+backend, currently either the classic netrc backend, JSON files, the
+Secret Service API, and pass, the standard unix password manager.
+
+@vindex auth-sources
+  All these alternatives are customized via the user option
+@code{auth-sources}, @ref{Top, Emacs auth-source,, auth, Emacs auth-source}.
+
+@vindex auth-source-save-behavior
+  When a password is entered interactively, which is not found via the
+configured backend, some of the backends offer to save it
+persistently.  This can be changed by the customizing user option
+@code{auth-source-save-behavior}.
index d501db7191432dbe70234024116a3c6dc61d8a6e..5b16d5034f148022abdf2be4ec19d1bbc8c08332 100644 (file)
@@ -1114,6 +1114,7 @@ Customization
                           By changing them, you can redefine keys.
 * Init File::           How to write common customizations in the
                           initialization file.
+* Authentication::      Keeping persistent authentication information.
 
 Easy Customization Interface