I am following the starter docs here and I solved some minor issues up to the actual authorization section. I was able to get the ngrok redirect server up and working. I set my .env config with my secret/ID, server host, and port.
When I run “npm run dev”, I am able to go to the redirect link and click the “Authorize Webflow” button on the ngrok link. After that, I am met with a " This site can’t be reached" error. Below the error, I see a DNS error “DNS_PROBE_FINISHED_NXDOMAIN”. I’ve tried some solutions from Google, but can’t get anything to work since the first part of the URL it tries to redirect to after is “https://undefined/oauth/authorize”.
I’m not seeing the part about which parts the application has access to (e.g the workspace). I also don’t see the “awesome you’re authorized” page.
That’s not a directory, it’s part of the auth URL, you’ll need to search for the text.
Somewhere you’ve missed a configuration step. The code would be a general purpose example of OAuth, tailored to Webflow’s specific OAuth setup.
That URL will ultimately be https://webflow.com/oauth/authorize
But rather than hardcoding it, you should just figure out where your setting are pulling from and set the hostname portion that’s currently undefined
There is no /oauth/authorize in the repo, the closest thing is /authorize. It’s pulling in my client_id correctly because I have purposefully tried to mess that up and it gave me an error that a client_id is required. These are the only 2 methods referring to redirects in the repo
Redirects happen after the initial request. Your URL error is in the initial request.
Have a look at Webflow’s OAuth 2 docs above, you can see the URL where I’ve linked.
** The wrong URL pasted in my initial message, fixed now
When you’re building systems like these, it’s very easy to miss one tiny detail or config item in the docs. The best way is usually just to go back to the top of the docs and walk through again. I built my implementation custom ( not based on the starter app ), but used only these links which are all in the Webflow docs;
No, I’m a managing consultant and developer who runs a private tech consultancy. We primarily build SaaS solutions and custom web applications, with a specialization in data-rich apps like LMS’s and CRM’s. You may have guessed we that we do a ton of work with Webflow.
@webdev 's name is Jeff. He’s been helping here a good deal longer, great guy.
Not sure what you mean by “never have solutions”, 161 isn’t bad. Don’t worry you’ll get more, just keep contributing.
Unfortunately a lot of people post questions without giving access to their projects, or showing their code, so the best you can do is point them in the right direction and tell them what to look for.
Excellent question, and there are 3 reasons.
I bore easily, and enjoy solving problems. This is better than a video game.
Helping people is fun, and rewarding
I learn TONS. Every day, new problems, leading to new solutions. It’s great.