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 Authorization OAuth 2.0 - Client Credentials Grant
Forum Updated to NodeBB v4.3 + New Features

Qt Authorization OAuth 2.0 - Client Credentials Grant

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 471 Views 2 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.
  • N Offline
    N Offline
    nsourl
    wrote on last edited by nsourl
    #1

    Hi,

    I am trying to use Qt Network Authorization in my application and specifically OAuth 2.0 protocol to communicate with a REST API by using M2M Client Credentials Grant (defined in OAuth 2.0 RFC 6749, section 4.4).

    I am working on Reddit Example and trying to modify parameters and avoid grant confirmation procedure by opening a browser tab.

    Since now I was not able to locate a appropriate parameter on QAbstractOAuth2 and QOAuth2AuthorizationCodeFlow classes and implement Client Credentials Grant flow. Any idea how it is possible to do that using Qt Network Authorization API?

    Also, I check this previous topic posted some time ago with a similar question but I am not sure if the answer to reimplement grant() method is considered as valid until now.

    Thanks.

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

      Hi,

      @nsourl said in Qt Authorization OAuth 2.0 - Client Credentials Grant:

      Also, I check this previous topic posted some time ago with a similar question but I am not sure if the answer to reimplement grant() method is considered as valid until now.

      Why would it not be ? :-)

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        @nsourl said in Qt Authorization OAuth 2.0 - Client Credentials Grant:

        Also, I check this previous topic posted some time ago with a similar question but I am not sure if the answer to reimplement grant() method is considered as valid until now.

        Why would it not be ? :-)

        N Offline
        N Offline
        nsourl
        wrote on last edited by
        #3

        @SGaist ok of course why not, I could follow this solution by reimplementing grant() method.

        But why after three years there is no better way to do that from the API? :)

        If there is a better way, it could be nice to use it!

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

          Likely because nobody submitted an implementation for it.

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

          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