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

Allow authorization without http-server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.9.2
    • Fix Version/s: 5.8
    • Labels:
      None

      Description

      When programmer uses QOAuth2AuthorizationCodeFlow and runs grant() method, then he must handle signal authorizeWithBrowser(..) by running QUrl parameter in some web browser - the OAuth redirection is then handled by QOAuthHttpServerReplyHandler (local http server).

      This approach is cute, but running some local http instance for catching OAuth redirection is not acceptable for everyone.

      So my idea is: allow users to avoid QOAuthHttpServerReplyHandler completely and allow them to set "AUTH" code to OAuth flow manually.

      Basically, I would like to have method QOAuth2AuthorizationCodeFlow::setAuthCode(const QString& authCode) which would look like this:

      void QOAuth2AuthorizationCodeFlow::setAuthCode(const QString& authCode) {
        setStatus(QAbstractOAuth::Status::TemporaryCredentialsReceived);
        requestAccessToken(authCode);
      }

      This way, users of the library can use their own way for getting initial AUTH code - for example custom crafted WebEngine-based component and then just continue the workflow with it. Example of such a component can be seen for example here.

        Attachments

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

          Activity

            People

            Assignee:
            jefernan Jesus Fernandez
            Reporter:
            skunkos Martin Rotter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes