Last weekend I was chatting with a friend who does forensic investigation of fires and it turns out electrical outlets are ACTUALLY REALLY DANGEROUS omg. Don't ever leave a device half plugged in it turns out it *will* start a fire.
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 😬
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
oh wow yeah, I can see how that would be incredibly confusing. Well for the record, OAuth secrets are absolutely supposed to be secret, and we have different solutions for deployments that can't keep secrets.
Having one of those moments where I feel like I need to tear up my entire office and living room and reorganize things and get rid of clutter, but that is not a project I should start at 5pm on a Sunday
Hmm that's not good. I did notice there's probably a bug with how it reports the case where it can't find the link from your site. Will take a closer look shortly.