Variable: auth-sources
auth-sources is a customizable variable defined in auth-source.el.gz.
Value
("~/.authinfo" "~/.authinfo.gpg" "~/.netrc")
Documentation
List of authentication sources.
Each entry is the authentication type with optional properties. Entries are tried in the order in which they appear. See Info node (auth)Help for users for details.
If an entry names a file with the ".gpg" extension and you have EPA/EPG set up, the file will be encrypted and decrypted automatically. See Info node (epa)Encrypting/decrypting gpg files for details.
If this option is nil, no authentication source is used but the local password cache.
It's best to customize this with M-x customize-variable (customize-variable) because
the choices can get pretty complex.
This variable was added, or its default value changed, in Emacs 26.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/auth-source.el.gz
(defcustom auth-sources '("~/.authinfo" "~/.authinfo.gpg" "~/.netrc")
"List of authentication sources.
Each entry is the authentication type with optional properties.
Entries are tried in the order in which they appear.
See Info node `(auth)Help for users' for details.
If an entry names a file with the \".gpg\" extension and you have
EPA/EPG set up, the file will be encrypted and decrypted
automatically. See Info node `(epa)Encrypting/decrypting gpg files'
for details.
If this option is nil, no authentication source is used but the local
password cache.
It's best to customize this with \\[customize-variable] because
the choices can get pretty complex."
:version "26.1" ; neither new nor changed default
:type `(choice (const :tag "Password cache" nil)
(repeat :tag "Authentication Sources"
(choice
(string :tag "Just a file")
(const :tag "Default Secrets API Collection" default)
(const :tag "Login Secrets API Collection" "secrets:Login")
(const :tag "Temp Secrets API Collection" "secrets:session")
(const :tag "Default internet Mac OS Keychain"
macos-keychain-internet)
(const :tag "Default generic Mac OS Keychain"
macos-keychain-generic)
(list :tag "Source definition"
(const :format "" :value :source)
(choice :tag "Authentication backend choice"
(string :tag "Authentication Source (file)")
(list
:tag "Secret Service API/KWallet/GNOME Keyring/KeyPassXC"
(const :format "" :value :secrets)
(choice :tag "Collection to use"
(string :tag "Collection name")
(const :tag "Default" default)
(const :tag "Login" "Login")
(const
:tag "Temporary" "session")))
(list
:tag "Mac OS internet Keychain"
(const :format ""
:value :macos-keychain-internet)
(choice :tag "Collection to use"
(string :tag "internet Keychain path")
(const :tag "default" default)))
(list
:tag "Mac OS generic Keychain"
(const :format ""
:value :macos-keychain-generic)
(choice :tag "Collection to use"
(string :tag "generic Keychain path")
(const :tag "default" default))))
(repeat :tag "Extra Parameters" :inline t
(choice :tag "Extra parameter"
:value (:host t)
(list
:tag "Host" :inline t
(const :format "" :value :host)
(choice :tag "Host (machine) choice"
(const :tag "Any" t)
(regexp
:tag "Regular expression")))
(list
:tag "Protocol" :inline t
(const :format "" :value :port)
(choice
:tag "Protocol"
(const :tag "Any" t)
,@auth-source-protocols-customize))
(list :tag "User" :inline t
(const :format "" :value :user)
(choice
:tag "Personality/Username"
(const :tag "Any" t)
(string
:tag "Name"))))))
(sexp :tag "A data structure (external provider)"))))
:link '(custom-manual "(auth) Help for users"))