question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: redirect_uri_mismatch

See original GitHub issue

oops! something went wrong

error: redirect_uri_mismatch
error_description: redirect_uri did not match any of the client's registered redirect_uris
state: kjkmdskdmsmmsmdslmdlsm

OAuth with Swan is not working and throws a redirect_uri_mismatch error instead.

Steps To Reproduce

  1. Log in to specter desktop, e.g. ‘http://umbrel.local:25441
  2. Click on ‘+ Choose plugins’
  3. Click on ‘Swan’
  4. Click on ‘Existing Swan users’
  5. Click on ‘Link your account’
  6. New tab opens presenting the error shown in the screenshot https://api.swanbitcoin.com/oidc/auth?client_id=specter&redirect_uri=http://umbrel.local:25441/svc/swan/oauth2/callback&response_type=code&response_mode=query&code_challenge=<redacted>&code_challenge_method=S256&state=kjkmdskdmsmmsmdslmdlsm&scope=offline_access%20v1%20write:vendor_wallet%20read:vendor_wallet%20write:automatic_withdrawal%20read:automatic_withdrawal&prompt=consent

Expected behavior This has worked at least once at some point in a version of specter desktop prior to updating to 1.13.1. I don’t know exactly in which version this regression was introduced though. Auto-withdrawals from Swan to Specter had been working for this account for quite some time. Eventually the auto-withdrawal stopped working which is why I attempted to re-connect the plugin.

Screenshots Fg09NavUcAENSGK

  • Where is your node running: umbrel
  • Where is your specter running: umbrel
  • If you’re running a binary, which OS: I don’t think it matters, but I’m also running specterd hwibridge on macOS since I access specter remotely
  • Browser: any, I tried Chrome, Brave, Safari and Edge
  • Specter Version: 1.13.1

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
moneymanoliscommented, Nov 9, 2022

@aphex3k we’ve identified the issue, it is on the Swan server side. I will tag you here, once it is resolved. Thanks for your patience and for bringing it to our attention!

0reactions
aphex3kcommented, Nov 21, 2022

Just a general note: You cannot expect to setup the integration on one specter and then use it on another instance. It’s difficult for me to understand this issue as IMHO, it should never have worked on an umbrel.

I’ve been using the same specter desktop instance on my umbrel. I’ve not moved it or anything. I just updated the docker containers to whatever was latest at the time and set up the Swan extension on the first version that it had available in a non-pre version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google OAuth 2 authorization - Error: redirect_uri_mismatch
Go to the console for your project and look under API Access. You should see your client ID & client secret there, along...
Read more >
Error 400: redirect_uri_mismatch (Google Single Sign-On)
This error typically means the Client Redirect URL was not properly added to the OAuth Web Application in the Google Cloud Console. To...
Read more >
Google OAuth2: How the fix redirect_uri_mismatch error. Part ...
The redirect_uri_mismatch error message is quite common when working with the Google APIs. Google APIs support authorization to private user ...
Read more >
400 redirect_uri_mismatch Error
This happens when the URL to your site is not typed in exactly right in the API console to the newly created Client...
Read more >
Google OAuth 2 Error 400: redirect_uri_mismatch but redirect ...
Google OAuth 2 Error 400: redirect_uri_mismatch but redirect uri is compliant and already registered in Google Cloud Console. 3110 views.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found