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.

No `oauth_callback` parameter in Garmin oauthConfirm URI

See original GitHub issue

Using express and trying to get the garmin flow working. The URI for the redirect doesn’t seem to have any oauth_callback parameter in it https://connect.garmin.com/oauthConfirm?oauth_token=<redacted>

My config.json

{
  "defaults": {
    "origin": "https://example.local:3000",
    "transport": "session"
  },
  "twitter": {
    "key": "[CONSUMER_KEY]",
    "secret": "[CONSUMER_SECRET]",
    "callback": "/handle_twitter_callback"
  },
  "garmin":{
    "key": "[redacted]",
    "secret": "[redacted]",
    "callback": "/handle_garmin_callback"
  }
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ir-fuelcommented, Jul 21, 2021

Yes that makes sense. The confusion comes from that you have a redirect_uri and callback, but Garmin wants to you configure a callback url in the app settings, which is the same as your redirect_uri

0reactions
simovcommented, Jul 21, 2021

I can see how this can be confusing. I tried explaining it here. The gist of it is that:

  1. redirect_uri is the one that you have to set for your app, and it always have to ends with /[provider]/callback
  2. then you can have an actual callback path, but that is where you want to receive the response data

@ir-fuel let me know if that makes sense, also feel free to open up another issue if you see fit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth custom HTTP param - Garmin Connect Web
How can I pass a custom param to authorizePath step (https://connect.garmin.com/oauthConfirm) and get it back along with oauth_token and oauth_verifier?
Read more >
OAuthSwift (1) connection - Stack Overflow
So, this part of code open the connection page of garmin in safari, i use my account mail/pwd to connect and that's all....
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