johnbrett / Getting-Started-with-hapi.js

Code examples for the book: Getting Started with hapi.js
https://gettingstartedwithhapijs.com
27 stars 16 forks source link

Chapter 5 example 3 authentication with a third party #10

Closed flacoman91 closed 8 years ago

flacoman91 commented 8 years ago

Hi John,

I'm trying the example with twitter authentication.

here's the values i see after creating a twitter app. Consumer Key (API Key)
Consumer Secret (API Secret)

is the api key the same as Client ID?

I'm getting a 500 internal server error when going to the http://127.0.0.1:1337/login page and I don't know how to debug this.

Any ideas? Thanks

flacoman91 commented 8 years ago

Never mind. i figured it out. I needed to have http://127.0.0.1 in the callback url setting on the twitter app page. It wasn't a required field when filling it out, so I left it blank initially.

johnbrett commented 8 years ago

Glad you got sorted Richard, hope it didn't take too long to figure out! :)