Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63625

allow two-phase grant in QOAuth2AuthorizationCodeFlow

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P2: Important
    • 5.10.0
    • 5.9.1
    • None

    Description

      QOAuth2AuthorizationCodeFlow::grant() currently (5.9.1) gets an authorization code and then uses it to get an access token all in one step.

      Could we have the option to authorize and return a code so that it can be stored and reused?

      I suggest something like the following:

      QOAuth2AuthorizationCodeFlow::authorize(), which would signal that a code is available.

      QOAuth2AuthorizationCodeFlow::code() to return the code, so it can be stored, and QOAuth2AuthorizationCodeFlow::setCode(const QString&) to provides a previously retrieved authorization code.

      QOAuth2AuthorizationCodeFlow::grantUsingCode(), which would skip the interaction with the user and just use a provided (setCode()) code to get an access token.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jefernan Jesus Fernandez
              kamorrissey Karen Morrissey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes