unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Thomas Hisch <t.hisch@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Loading credentials from login keyring
Date: Thu, 31 Dec 2020 16:18:16 +0100	[thread overview]
Message-ID: <87im8i57if.fsf@gmx.de> (raw)
In-Reply-To: <CA+e_QifoScYkmbsPL2ZPk8aYqoGh4h8S5+VgKJtj8PGsM=Y2fg@mail.gmail.com> (Thomas Hisch's message of "Tue, 29 Dec 2020 20:33:13 +0100")

Thomas Hisch <t.hisch@gmail.com> writes:

Hi Thomas,

> returns nil. The reason for this is that
> `auth-source-user-and-password` searches for an entry with a plist key
> :host and not with the key :service.
>
> I know that I can manually pass the search spec to `auth-source-search
> `,
> but I want to keep the auth code in my pkg as high-level as
> possible. I also don't want to break anything for
> users that use different auth-sources.
>
> Is the implementation of auth-source.el, e.g.
> `auth-source-user-and-password`, supposed
> to support reading of secrets stored in a keyring, which are not
> created by emacs?

That's a very good question. AFAIK, there is no common schema for the
Login keyring, so you are best served to use entries which have been
created with the same application.

> Best regards,
> Thomas

Best regards, Michael.



  parent reply	other threads:[~2020-12-31 15:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29 19:33 Loading credentials from login keyring Thomas Hisch
2020-12-31 10:14 ` Ted Zlatanov
2020-12-31 15:19   ` Michael Albinus
2020-12-31 15:18 ` Michael Albinus [this message]
2021-01-01  9:08   ` Thomas Hisch
2021-01-01 10:25     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im8i57if.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=t.hisch@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).