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 
refreshAccessToken method.

Juhani


> Jesus Fernandez <jesus.fernan...@qt.io> kirjoitti 22.2.2017 kello 13.23:
> 
> 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 add custom 
> parameters.
> 
> https://doc.qt.io/qt-5/qabstractoauth.html#setModifyParametersFunction
> 
> -- 
> 
> Best regards,
> Jesus

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to