Giter Club home page Giter Club logo

Comments (4)

bytespider avatar bytespider commented on September 21, 2024

I've added callbackUrl to the options as per your suggestion. Its currently on https://github.com/bytespider/jsOAuth/tree/callback_url_issue12 branch. I'll bring this into master and generate a new version at the end of the week

from jsoauth.

lucassouza1 avatar lucassouza1 commented on September 21, 2024

Thanks!

from jsoauth.

bytespider avatar bytespider commented on September 21, 2024

V1.1 in the downloads section now.

from jsoauth.

Ridermansb avatar Ridermansb commented on September 21, 2024

Hello again @bytespider

I'm having problems with callbackurl.

Define my OAuth object as follows:

 OAuth({
        consumerKey: servXML.attr("appKey"),
        consumerSecret: servXML.attr("appSecret"),
        requestTokenUrl: servXML.attr("request_token"),
        authorizationUrl: servXML.attr("authorize"),
        accessTokenUrl: servXML.attr("access_token"),
        callbackUrl: "http://ridermansb.kodingen.com"
    });

Authentication

oauthObj.fetchRequestToken(openAuthoriseWindow, failureHandler);

Callback success function for fetchRequestToken

openAuthoriseWindow = function(url) {
    window.open(url, "authorise", "width=850,height=550,toolbar=no,resizable=yes,scrollbars=yes");
}

Problem

I'm trying to consume the Dropbox API.
After the authentication URL is returned:

https://www.dropbox.com/1/oauth/authorize?oauth_token_secret={XXX}&oauth_token={XXX}

Before allow
Before allow

After allow
After allow

Apparently that was not called calbackurl

Am I doing something wrong?
What do you suggest?

Note: Using the Twitter API, everything works perfectly!

from jsoauth.

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.