Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

0.3.28 fails to authenticate for the first time #50

Closed
learntoswim opened this issue Jan 15, 2015 · 1 comment
Closed

0.3.28 fails to authenticate for the first time #50

learntoswim opened this issue Jan 15, 2015 · 1 comment

Comments

@learntoswim
Copy link

Seeing some errors when validating for the first time:

function urlCallbackMethod (req, res, next) {
    var options = {
        api_key: api_key,
        secret: secret,
        callback: callback_uri,
        access_token: req.query.oauth_token,
        access_token_secret: req.query.oauth_verifier
    };

    Flickr.authenticate(options, function (err, flickr) {
        // Some code
        });
};

From FlickrAPI.js from line 46:

        queryString = Utils.formQueryString(queryArguments),
        data = Utils.formBaseString("GET", url, queryString),
        signature = Utils.sign(data, options.secret, options.access_token_secret),
        flickrURL = url + "?" + queryString + "&oauth_signature=" + signature;

Results in flickrURL being

https://api.flickr.com/services/rest?method=flickr.auth.oauth.checkToken&oauth_consumer_key=a722f8da2427dc90xxx&oauth_nonce=eccdbc86ae2159e6d9cxxx&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1421341924189&oauth_token=72157649897363130-xxx&oauth_signature=Vc2U%2F8ndpOyCb%2FAmCQ8Pg55av%2Fg%3D

Results in

null 'oauth_problem=verifier_invalid'
@learntoswim learntoswim changed the title 0.3.28 fails to authenticate for the first tim 0.3.28 fails to authenticate for the first time Jan 16, 2015
@learntoswim
Copy link
Author

You can probably close this.

@Pomax Pomax closed this as completed Jan 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants