Results 1 to 3 of 3

Thread: UnverifiedRequestTokenException

  1. #1
    Join Date
    Sep 2008
    Location
    Kiev, Ukraine
    Posts
    14

    Unhappy UnverifiedRequestTokenException

    Hi,
    I'm trying to impement integration with linkedin and have such problem:
    When user is asked about authorization (linkedin popup), user can press cancel button or close popup or press proteced link 2 times. For second time I've got this Error, thrown by CoreOAuthConsumerSupport, because consumer filter treats request token, saved earlier, as verified, but it is not.
    Maybe I'm wrong but for such situation, filter shouldn't ask for access token, having only unverified request token, it should fire authorizatin proccess again.

    My suggestion is to replace line 129 in OAuthConsumerContextFilter:
    Code:
    if (token == null) { //no token associated with the resource, start the oauth flow.
    to:
    Code:
    if (token == null || request.getParameter(OAuthProviderParameter.oauth_verifier.toString())==null) { //no verified token associated with the resource, start the oauth flow.
    What do you think?
    Last edited by Hunger; Feb 3rd, 2011 at 09:26 AM.
    Code:
    if (var) return true;
    else if (!var) return false;
    else return !true&&!false; // :-)

  2. #2
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    Sounds reasonable. Could you open a JIRA issue for this?

  3. #3
    Join Date
    Sep 2008
    Location
    Kiev, Ukraine
    Posts
    14

    Default

    Code:
    if (var) return true;
    else if (!var) return false;
    else return !true&&!false; // :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •