Giter Site home page Giter Site logo

using grant locally. about grant HOT 6 CLOSED

simov avatar simov commented on May 7, 2024
using grant locally.

from grant.

Comments (6)

simov avatar simov commented on May 7, 2024

Hi @MarcMcIntosh take a look at this article that I wrote about Grant. There you can find more detailed information about how to use it.

from grant.

MarcMcIntosh avatar MarcMcIntosh commented on May 7, 2024

That was you?... nice, I've already read through it though... if i recall right some of the errors i got were.

provider.protocol = options.protocol||config.server.protocol
^
TypeError: Cannot read property 'protocol' of undefined

And face book saying that i was using an unauthorised url.... along with no redirect after the callback,

Thanks fo writing back so quick :)

Just to confirm where the config file says "key": "[APP_ID]", that's not a literal value is it? becauses i've been replacing the caps and brackets with my keys :/

from grant.

simov avatar simov commented on May 7, 2024

If you take the most basic example all you need to do to configure Facebook is to set your app like this, the App ID and App Secret is what you paste in the config.json file as key and secret for Facebook. Ofc you have to add dummy.com 127.0.0.1 to your hosts file too, that's all.

from grant.

simov avatar simov commented on May 7, 2024

Specifically Facebook allows http://localhost:3000 to be set as Site URL (which refers to the redirect URL) So if you set http://localhost:3000 in your Facebook app you will be able to initiate the flow from localhost in your web site like this http://localhost:3000/connect/facebook

Some providers doesn't allow localhost for redirect URL, that's why all of the examples are using dummy.com

from grant.

MarcMcIntosh avatar MarcMcIntosh commented on May 7, 2024

ohh, that explains alot...
thanks :)

from grant.

simov avatar simov commented on May 7, 2024

No problem, I'm closing this issue.

from grant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.