Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1786

Utilizing an OAuth2 refresh token to obtain an access token should handle a 400 response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0-beta2
    • 2.5.0-beta3
    • Java

    Description

      In the newest version of the OAuth2 spec, the language around the behavior for failure when using a refresh token has been made more explicit.

      See: http://tools.ietf.org/html/draft-ietf-oauth-v2-26#section-6
      Also see: http://tools.ietf.org/html/draft-ietf-oauth-v2-26#section-5.2

      Currently in BasicOAuth2Request we only check for a 401 response to indicate that the refresh token is "bad" and should be discarded. The updated spec language indicates that a 400 is also a valid response to indicate a bad refresh token.

      Attachments

        1. refresh_token.patch
          0.8 kB
          Adam Clarke

        Activity

          People

            ssievers Stanton Sievers
            ssievers Stanton Sievers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: