@aaronpk do you know if there's a neat way for me to auth with Foursquare from a CLI tool I'm building? I need the user to be able to get their own OAuth token but I don't want to ship my client secret with the CLI tool
3
2
Yeah there are a couple tricks, none of which are ideal. Basically you kick off the flow from the CLI app, get the user to visit a URL, but the redirect is to your server, and then you either tell them to paste an auth code into the CLI or
1
Replying to @aaronpk @simonw
or, you spin up a local web server to catch a redirect back from your backend, or you mimic the OAuth device flow on your backend. Hmm this sounds like a fun blog post 😬

Aug 28, 2019 · 11:58 PM UTC

2