Function: url-digest-auth-source-creds

url-digest-auth-source-creds is a byte-compiled function defined in url-auth.el.gz.

Signature

(url-digest-auth-source-creds URL)

Documentation

Find credentials for URL object from the Emacs auth-source.

Return value is a plist that has :user and :secret properties if credentials were found. Otherwise nil.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-auth.el.gz
(defun url-digest-auth-source-creds (url)
  "Find credentials for URL object from the Emacs auth-source.
Return value is a plist that has `:user' and `:secret' properties
if credentials were found.  Otherwise nil."
  (let ((server (url-digest-auth-server-id url))
        (type (url-type url)))
    (list :user (url-do-auth-source-search server type :user)
          :secret (url-do-auth-source-search server type :secret))))