unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Allen Li <darkfeline@felesatra.moe>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Allen Li <vianchielfaura@gmail.com>, 30246@debbugs.gnu.org
Subject: bug#30246: 25.2.50; auth-source does not support creation or deletion with secrets provider
Date: Sat, 8 Sep 2018 16:51:19 -0700	[thread overview]
Message-ID: <CADbSrJw24uNBUFc2D5vGeXQ_D0ip0EJJn_tuiJtPH4iz_h+tDw@mail.gmail.com> (raw)
In-Reply-To: <87muswgw3d.fsf@gmx.de>

On Wed, Sep 5, 2018 at 1:57 AM Michael Albinus <michael.albinus@gmx.de> wrote:
>
> Could you test it by any chance in Emacs 27? If not, I'll close the
> bug. You could still report later if it doesn't work as expected.

It looks like secret creation works now, however I can't seem to
retrieve the secret.  I can file a separate bug for that if you want.

(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

Also, deletion still isn't supported:

(auth-source-delete :host "example.com" :user "bob")
(cl-assertion-failed ((not delete) "The Secrets API auth-source
backend doesn't suppor..."))

>
> Best regards, Michael.





  reply	other threads:[~2018-09-08 23:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-25  0:56 bug#30246: 25.2.50; auth-source does not support creation or deletion with secrets provider Allen Li
2018-01-25 10:11 ` Michael Albinus
2018-04-13 13:41   ` Michael Albinus
2018-04-16  1:51     ` Allen Li
2018-04-16  6:44       ` Michael Albinus
2018-09-05  8:57       ` Michael Albinus
2018-09-08 23:51         ` Allen Li [this message]
2018-09-11 10:26           ` Michael Albinus
2018-09-13 14:09             ` Michael Albinus
2018-04-23  8:43     ` 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=CADbSrJw24uNBUFc2D5vGeXQ_D0ip0EJJn_tuiJtPH4iz_h+tDw@mail.gmail.com \
    --to=darkfeline@felesatra.moe \
    --cc=30246@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=vianchielfaura@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).