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. QT 5.15 OAuth2 with certificate flow
Forum Updated to NodeBB v4.3 + New Features

QT 5.15 OAuth2 with certificate flow

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 139 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dadde
    wrote on last edited by
    #1

    Hello, I am a total beginner with OAuth2 communication and has gotten an assignment to use Oauth2 with certificate flow to send some json data to a recipient. I have done some reading but I am still not sure where to start.

    Maybe my immediate question is if I have all I need to create the certificate, within the QT framework, version 5.15.8 specifically? I tried to see if I could modify the reddit client example to use certification but I was not able to find a way to add a certificate through the functions that were used in that example: https://code.qt.io/cgit/qt/qtnetworkauth.git/tree/examples/oauth/redditclient?h=5.15

    Having looked around, it seems I need to create a "json web token" for the client certificate to be encoded into and QT seems to be lacking such a tool?

    If there is anyone who has worked with OAuth2 with certification flow in QT and can give some pointers, I would greatly appreciate the help!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you referring to the client credentials flow ?

      In any case, do you have an application somewhere that will handle the authentication part ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Are you referring to the client credentials flow ?

        In any case, do you have an application somewhere that will handle the authentication part ?

        D Offline
        D Offline
        Dadde
        wrote on last edited by
        #3

        @SGaist Hi, sorry for the very late response! I got a little further with my project but I just opened a new thread for the next step I am stuck on...

        I am still not entirely sure if I am on the right track, but I got a python example to follow from the people who manage the server, which I could replicate pretty decently using the QT framwork.

        Based on the example I got, I need to use importpkcs12 to extract a private key which I can use to... go further in the process of sending the package. I immediately got stuck on that part which is what my new thread is about, where QSslCertificate::importPkcs12(...) returns false despite the seemingly correct inputs. I think I can close this particular thread for now.

        1 Reply Last reply
        0
        • D Dadde has marked this topic as solved on

        • Login

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