Skip to content

VK api authorization for C++ QT based on QNetworkAccessManager (no WebKit, no WebEngine)

Notifications You must be signed in to change notification settings

Marm0t/vk_authenticator

Repository files navigation

VKAuthenticator

VKAuthenticator is a simple QT class that performs authentication and obtains OAuth token from VK.COM API.

It uses QT core, gui, network and widgets. To request username/password dialog is shown. Important warnings are printed in QMessageBox.

Because no WebKit nor WebEngine are needed to perform authorization flow it can be statically built which sometimes is very important for standalone applications.

The interface of VKAuthenticator is described in header file. In a nutshell,

  • user need to provide application id and permissions list to the constructor
  • authentication should be triggered by public slot authenticate
  • user can subscribe for signals error or tokenReceived to check the status of authentication
  • or get error message or token by calling corresponding getter

The code is ugly and barely readable because I didn't have time to write it properly, so I apologize.

Any comments and questions are welcome.

About

VK api authorization for C++ QT based on QNetworkAccessManager (no WebKit, no WebEngine)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published