This is a sample QT application that demonstrates how to integrate Google Auth 2.0 login into a desktop application. The application uses the OAuth 2.0 protocol to authenticate users with their Google accounts, and then displays their profile information. Requirements
To use this application, you will need:
QT 5.15 or later
A Google Cloud Platform project with the Google+ API and Google Identity Platform API enabled.
A client ID and client secret from the Google Cloud Console.
Getting started
Clone this repository to your local machine.
Open the project in QT Creator.
Open the mainwindow.cpp file and replace the CLIENT_ID and CLIENT_SECRET constants with your own client ID and client secret from the Google Cloud Console.
Build and run the application.
Usage
When you run the application, you will see a "Login" button.
Click the button to open the Google login dialog.
Browser will be launched.
Select your google account.
If authentication is successful, the application will display your profile information.
Contributing
If you want to contribute to this project, feel free to create a pull request or open an issue.
Acknowledgments
This project was inspired by the Google Sign-In for Websites documentation.