Google OAuth 2 Login on Qt 6.9.1
-
Hi.
I am working on logging in with Google OAuth2 and creating my own server based on Node.js that is directed from the desktop app > browser > desktop app. However, when I want to redirect from the browser to the desktop app, I am confused because the browser opens a new application and this causes a Qt DLL error. If I run windeployqt, I cannot see the console app and its process. Is there a solution for this?
Thank you:)
-
Hi,
How are you doing that ?
Are you using the Qt Network Auth module for the login part ? -
@SGaist said in Google OAuth 2 Login on Qt 6.9.1:
How are you doing that ?
I tried to imitate several applications that use Google Auth, which redirects the login to an external browser. After the login is successful and complete, the external browser returns to the application and retrieves the bearer token (JWT) so that the application can access URLs that require authentication.
-
@SGaist said in Google OAuth 2 Login on Qt 6.9.1:
How are you doing that ?
I tried to imitate several applications that use Google Auth, which redirects the login to an external browser. After the login is successful and complete, the external browser returns to the application and retrieves the bearer token (JWT) so that the application can access URLs that require authentication.
@Blackzero usually, applications spin a local web server to get the answer of the authentication process and basically asks the user to close the web page.