* bug#32725: 26.1; auth-source does not return newly created entries
@ 2018-09-12 22:20 Allen Li
2019-07-13 2:28 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Allen Li @ 2018-09-12 22:20 UTC (permalink / raw)
To: 32725
New bug filed per discovery in #30246
(auth-source-search :host "example.com" :user "bob" :secret "password"
:create t)
After calling the returned save function, I can confirm that the
secret is created:
$ secret-tool search --all --unlock host example.com user bob
[/org/freedesktop/secrets/collection/login/484]
label = bob@example.com
secret = password
created = 2018-09-08 23:35:47
modified = 2018-09-08 23:35:47
schema = org.freedesktop.Secret.Generic
attribute.host = example.com
attribute.user = bob
However I cannot seem to retrieve it using auth-source:
(auth-source-search :host "example.com" :user "bob")
nil
Per Michael Albinus:
> I could reproduce it locally. And I could reproduce it also with another
> backend, "~/.authinfo". However, if I start a new Emacs session,
>
> (auth-source-search :host "example.com" :user "bob")
>
> returns a valid result.
In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.22.24), modified by Debian
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux rodete (upgraded from: Ubuntu 14.04 LTS)
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#32725: 26.1; auth-source does not return newly created entries
2018-09-12 22:20 bug#32725: 26.1; auth-source does not return newly created entries Allen Li
@ 2019-07-13 2:28 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-13 2:28 UTC (permalink / raw)
To: Allen Li; +Cc: 32725
Allen Li <darkfeline@felesatra.moe> writes:
> New bug filed per discovery in #30246
>
> (auth-source-search :host "example.com" :user "bob" :secret "password"
> :create t)
>
> After calling the returned save function, I can confirm that the
> secret is created:
[...]
> However I cannot seem to retrieve it using auth-source:
>
> (auth-source-search :host "example.com" :user "bob")
> nil
[...]
>> I could reproduce it locally. And I could reproduce it also with another
>> backend, "~/.authinfo".
I tried this now with the authinfo backend, and the search does return
the credentials, so it seems like this has been fixed now in Emacs 27,
and I'm closing this bug report. If this isn't the case, please reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-13 2:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12 22:20 bug#32725: 26.1; auth-source does not return newly created entries Allen Li
2019-07-13 2:28 ` Lars Ingebrigtsen
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).