File indexing completed on 2025-01-19 03:55:39

0001 #include "o2googledevice.h"
0002 
0003 static const char *GoogleDeviceTokenUrl = "https://oauth2.googleapis.com/token";
0004 static const char *GoogleDeviceRefreshUrl = "https://oauth2.googleapis.com/token";
0005 static const char *GoogleDeviceEndpoint = "https://oauth2.googleapis.com/device/code";
0006 // Google uses a different grant type value than specified in RFC 8628
0007 static const char *GoogleDeviceGrantType = "http://oauth.net/grant_type/device/1.0";
0008 
0009 O2GoogleDevice::O2GoogleDevice(QObject *parent) : O2(parent) {
0010     setGrantFlow(GrantFlowDevice);
0011     setGrantType(GoogleDeviceGrantType);
0012     setRequestUrl(GoogleDeviceEndpoint);
0013     setTokenUrl(GoogleDeviceTokenUrl);
0014     setRefreshTokenUrl(GoogleDeviceRefreshUrl);
0015 }
0016 
0017 #include "moc_o2googledevice.cpp"