emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading credentials from login keyring


From: Ted Zlatanov
Subject: Re: Loading credentials from login keyring
Date: Thu, 31 Dec 2020 10:14:31 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Tue, 29 Dec 2020 20:33:13 +0100 Thomas Hisch <t.hisch@gmail.com> wrote: 

TH> I created the credentials using the python-keyring [2] pkg using the command

TH> `keyring set hostname username`

TH> The above command creates an entry in the Login keyring that has the
TH> following schema (output of `M-x secrets-show-secrets`)

TH>  `-[-] Password for ’thomas.hisch’ on ’hostname’
TH>     |-  password:    ********** [Show password]
TH>     |-  application: Python keyring library
TH>     |-  service:     hostname
TH>     |-  username:    thomas.hisch
TH>     `-  xdg:schema:  org.freedesktop.Secret.Generic

TH> The problem now is that `auth-source-user-and-password` doesn't find the
TH> credentials in the "Login" keyring, i.e.,

TH> (let ((auth-sources '("secrets:Login")))
TH>   (auth-source-user-and-password "hostname"))

TH> returns nil. The reason for this is that `auth-source-user-and-password`
TH> searches for an entry with a plist key :host and not with the key :service.

If there will never be a :host in the Login keyring, I have no objection
to mapping :service to :host on the backend or specifically in
`auth-source-user-and-password`. But I don't know if that will break any
existing use cases.

Michael, WDYT?

Thanks
Ted



reply via email to

[Prev in Thread] Current Thread [Next in Thread]