Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OAuth2 best way to debug?

OAuth2 best way to debug?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 647 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Alex94102A Offline
    Alex94102A Offline
    Alex94102
    wrote on last edited by
    #1

    Hi,

    I am trying to get OAuth2 to work with a specific provider, but although I am setting everything correctly, I run into issues:

    Status change to TemporaryCredentialsReceived
    qt.networkauth.oauth2: Unexpected call
    qt.networkauth.replyhandler: Error transferring
    https://<host>/v1/oauth2/token - server replied: Bad Request

    Do you guys have any recommendations for debugging this type of problems? I want to see the request that is being sent. I got this to work using CURL but not in QT with the new OAUth2 libraries. It fails when it tries to retrieve the refresh and access tokens.

    1 Reply Last reply
    0
    • Alex94102A Offline
      Alex94102A Offline
      Alex94102
      wrote on last edited by
      #2

      I placed in the main the following statement:
      QLoggingCategory::setFilterRules("qt.networkauth.*=true");

      and this generates some additional messages, but not enough. I am building a debug version of QT and I will have to use the debugger to see what's going on.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved