Unsolved Qt Authorization OAuth 2.0 - Client Credentials Grant
-
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.
-
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 ? :-)
-
@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!
-
Likely because nobody submitted an implementation for it.