Go to your Google Account, click on “Security,” and then select “2-Step Verification” under “How you sign in to Google” section to follow the setup process for 2-Step Verification.
Key takeaways:
App passwords secure Gmail by enabling third-party app access without exposing your main account password.
To create an app password, enable 2-Step Verification and generate a 16-digit code for non-Google app integration.
App passwords are entered once per app or device and can be revoked anytime for added security.
App passwords are a way to secure our Gmail account while using third-party apps or devices that don't support two-step verification. An app password is a 16-digit code that allows us to securely sign in to our Gmail account from a non-Google app, such as an email client or a mobile device.
App passwords allow us to keep your main Google account password secure while still enabling access for third-party apps.
Many older applications do not support modern security protocols like OAuth 2.0, making app passwords necessary for authentication.
Please make sure to enable 2-Step Verification on your Google account before creating an app password.
Use the following steps to create an application password in Gmail:
Open Gmail and log in to your account.
Click on "Security".
Under "How you sign in to Google" section, click on "2-Step Verification".
Note: We may need to sign in again to verify our identity.
Scroll down to the "App Password" section and click on the arrow button given on the right side.
Add the app name to create a app specific password and click on "Create" button.
Once the app password is generated, copy and paste it into the app you want to use.
Note: Remember that we only have to enter the app password once per app/device, and we can revoke it at anytime.
Ready to take your Spring Boot application to the next level? Check out our project on Integrate LDAP Authentication and Email Services in Your Web App which covers the integration of LDAP authentication and email services, detailing the setup for Spring Security, and Google SMTP.
Haven’t found what you were looking for? Contact Us
Free Resources