Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-23 Thread Jesus Fernandez
On Wednesday, February 22, 2017 10:43:23 PM Juhani Matilainen wrote: > But it seems refreshAccessToken -request doesn’t contains client_id and > client_secret parameters that are required to refreshing an access token (at > least with Google login) … and setModifyParametersFunction is available

Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-22 Thread Juhani Matilainen
Thanks again. Yes, it works. Now I can get refresh_token. But it seems refreshAccessToken -request doesn’t contains client_id and client_secret parameters that are required to refreshing an access token (at least with Google login) … and setModifyParametersFunction is available in refreshAcce

Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-22 Thread Jesus Fernandez
On Wednesday, February 22, 2017 10:19:06 AM Juhani Matilainen wrote: > Another question: Google login requires ’access_type=offline’ parameter in > authorization request to get refresh token. Which function should be used to > set it? You can use QAbstractOAuth::setModifyParametersFunction to ad

Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-22 Thread Juhani Matilainen
Thank you. Unfortunately I couldn’t get it to work with multipart post request. Do you have an example? But I found that I can successfully use it in the old way: QAbstractOAuth::networkAccessManager::post() Another question: Google login requires ’access_type=offline’ parameter in authorizatio

Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-21 Thread Jesus Fernandez
On Monday, February 20, 2017 04:24:10 PM Juhani Matilainen wrote: > Hello, > > Qt 5.8 contains new QtNetwork Auth module (as a technology preview). I > successfully login to Google and get a data from Google Drive. But I haven’t > figured out how to use post() -function. There is no QByteArray o

[Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-20 Thread Juhani Matilainen
Hello, Qt 5.8 contains new QtNetwork Auth module (as a technology preview). I successfully login to Google and get a data from Google Drive. But I haven’t figured out how to use post() -function. There is no QByteArray or QHttpMultiPart arguments but only QVariantMap. How I can send data with