How do I set up Google Talk/Hangout in Pidgin?

I'm using Pidgin and it works great. But I have trouble getting my Google Talk/Hangout account running. I'm getting the error message: "Not Authorized"

I found the following link but nothing works for me. How do I set up Google Talk in Pidgin?

I can't find the Google settings for less secure apps in my Google account.

Here are my settings:

Basic Tab:

Protocol: XMPP
Username: myUsername (without @mydomain.com)
Domain: mydomain.com
Resource: Home
Password: myPassword
Checked Remember password

Advanced Tab:

Connection security: Require encryption
Connect port: 5222 (default)
Connect server: talk.google.com
File transfer proxies: proxy.eu.jabber.org (default)

Solution 1:

I can't find the google settings for less secure apps in my google account.

When signed in to your account, go to My Account, and in the "Sign-in & Security" column, go to Connected Apps & Sites. Third option down on the right is a toggle for allowing less secure apps.

Solution 2:

My settings work perfect (on windows) I recommend not enabling settings for less secure apps

The trick is to first enable 2-Step Verification in gmail settings, then add pidgin, and finally copy the password that was generated

My settings are as follows

Protocol: XMPP

Username: Your username (without domain)

Domain: gmail.com (or your domain)

Resource: Home

Password: Your Password

Check "Remember password"

Uncheck new email.

Set Connection security to Require encryption Leave connect port and connect server at default. Set File transfer proxies to proxy.eu.jabber.org (default)

Check show custom smileys

Solution 3:

This configuration is what worked for me:

enter image description here

NOTE

You need a Connect Server: talk.google.com in the Advanced tab.

Hope this helps. Good Luck.

Solution 4:

From Gmail, click on your avatar on the top right, click on "My Account", then click on "Sign in security". From there, follow what you see in this image:

Sign-in security steps