Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe CLI not using auth from keychain #1013

Open
yassinecc opened this issue Dec 30, 2022 · 4 comments
Open

Stripe CLI not using auth from keychain #1013

yassinecc opened this issue Dec 30, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@yassinecc
Copy link

yassinecc commented Dec 30, 2022

Issue

I can successfully log in with stripe login, and credentials are properly written into the Ubuntu keychain + ~/.config/stripe/config.toml under the default project

When running stripe listen --live or stripe events resend --live, I always get redirected to the login flow. The CLI calls succeed when I include the restricted API key

Expected Behavior

After successfully logging in with stripe login, I should not have to include an API key to CLI commands for them to work

Steps to reproduce

  • Run stripe login
  • Call e.g. stripe listen --live
  • The listener should correctly start

Traceback

I don't know how to get debug logs, could not see any error logs

Environment

Ubuntu 22.04.1 LTS
stripe CLI v1.13.6

@yassinecc yassinecc added the bug Something isn't working label Dec 30, 2022
@ksullivan
Copy link

Looks like this fixes it...

	// KeyManagementService is the key management service name
-	KeyManagementService = "Stripe CLI"
+	KeyManagementService = "Stripe"

There seems to be an issue with the gnome keyring where it can't handle spaces in service names...

See 99designs/keyring#44, 99designs/keyring#83 and 99designs/keyring#90

@weirdvic
Copy link

weirdvic commented Mar 9, 2023

Hello I have the same problem. Is there any workaround available?

@nasgir
Copy link

nasgir commented Jun 1, 2023

Can confirm this bug on Ubuntu 22.10 and Stripe CLI 1.14.7 - I get stuck in an authentication loop when trying to run 'stripe event resend' using the restricted key. Didn't test with the private API key. I used the Windows application instead and it worked.

@distefam
Copy link

This issue is nearly a year old and there is a simple fix that @ksullivan specified above. Is this going to make it into a release?

lol768 added a commit to raileasyuk/stripe-cli that referenced this issue Dec 4, 2023
vcheung-stripe pushed a commit that referenced this issue Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants