GithubHelp home page GithubHelp logo

customized redirect URL ? about grant HOT 2 CLOSED

simov avatar simov commented on April 28, 2024
customized redirect URL ?

from grant.

Comments (2)

simov avatar simov commented on April 28, 2024

The OAuth redirect URL is used internally by Grant. What you probably want to is to set up your callback URL. I'm giving you an example with Twitter:

  1. Set your OAuth application redirect url to http://mywebsite.com/connect/twitter/callback
  2. Set your your server's callback which is where you want to receive the final response data:
twitter: {
  key: '',
  secret: '',
  callback: '/handle_twitter_callback'
}

Notice that the redirect URL of your OAuth app and the path to handle the callback in your app are different. Take a look at the examples, here is the most basic one.

Only in very rare cases you really need a custom redirect URL for your OAuth application. Let me know if that's the case.

from grant.

kerphi avatar kerphi commented on April 28, 2024

Thank you.
Le 12 nov. 2015 21:50, "simo" [email protected] a Γ©crit :

The OAuth redirect URL is used internally by Grant. What you probably you
want to is to set up your callback URL. I'm giving you an example with
Twitter:

  1. Setup your OAuth application redirect url to
    http://mywebsite.com/connect/twitter/callback
  2. Setup your your server's callback which is where you want to
    receive the final response data:

twitter: {
key: '',
secret: '',
callback: '/handle_twitter_callback'
}

Notice that the redirect URL of your OAuth app and the path to handle the
callback in your app are different. Take a look at the examples, here is
the most basic one
https://github.com/simov/grant/tree/master/example/basic.

Only in very rare cases you really need a custom redirect URL for your
OAuth application. Let me know if that's the case.

β€”
Reply to this email directly or view it on GitHub
#37 (comment).

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.