Three-Project Series

Secure APIs with Google Sign In and Two-Factor Authentication you own this product

basics of Java, JavaScript, HTML, CSS, and Spring
skills learned
implement Google Sign-In • log all the requests for auditing purposes using standard formats
Sashank Dara
3 weeks · 8-10 hours per week average · BEGINNER

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!


5, 10 or 20 seats+ for your team - learn more

In this liveProject series, you’ll add secure Google Sign-In functionality to the API of a news aggregator site. You’ll take on the role of a developer for the ReadBytes website, working to enhance user experience and reduce friction with a social sign-on. Each project in this series is self-contained, letting you pick and choose the skills that are relevant to you.

These projects are designed for learning purposes and are not complete, production-ready applications or solutions.

here's what's included

Project 1 Implement Google Sign-In

In this liveProject, you’ll register your app with Google to generate a sign-in code, then build a basic UI for your login page. You’ll make use of the OpenID Connect Protocol and Google Platform Library, then set up basic HTTP authentication for your API.

Project 2 Implement Google Sign-Out

In this liveProject, you’ll use the Google Sign-Out protocol to add logout, session monitoring and disconnect-user flows to your login. You’ll implement UI changes to add a “Logout” button that calls to Google’s API, and add the functionality to permanently remove a user from your service.

Project 3 Implement Two-Factor Authentication

In this liveProject, you’ll enhance the security of your social sign-in with two-factor authentication. In order to counterattack cyber attacks like phishing, you’ll implement a time-based one-time password protocol in your application.

book resources

When you start each of the projects in this series, you'll get full access to the following book for 90 days.

choose your plan


only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Secure APIs with Google Sign In and Two-Factor Authentication project for free

project author

Sashank Dara

Sashank Dara received his PhD in cybersecurity from IIIT-Bangalore in the area of applied cryptography and threat intelligence. He’s an expert cybersecurity technologist with more than 17 years of experience in the field, including as a consultant advisor for Manipal Global Education Services’ cybersecurity programs and as a security technology and strategy advisor for security startups including Appknox, Haltdos, and He remains a trusted information security consultant and advisor for top companies in EdTech, IT/ITes, academia, and real estate. He’s the co-inventor of 5 U.S. patents (and 3 IETF drafts) in the areas of cloud, SDN, and NFV security, and he’s published more than a dozen research papers at IEEE, LNCS conferences in the areas of cloud security, privacy, cryptography, and threat intelligence. A prolific speaker at security conferences and invited talks, Dara is currently the CTO and co-founder of Seconize, an award-winning cybersecurity startup pioneering a cyber risk and compliance management SaaS product suite.


This liveProject series is for developers experienced with REST APIs and Java web development. To begin this liveProject you will need to be familiar with the following:

  • Basics of Java
  • Basics of JavaScript, HTML, and CSS
  • Basics of Spring
  • Basics of JDBC
  • Java IDEs such as Eclipse or IntelliJ IDEA
  • Testing APIs via PostMan
  • Basic debugging
  • Code reviews
  • Code refactoring
  • Unit testing
  • Security testing

you will learn

In this liveProject, you’ll get hands-on experience implementing authentication based on Google Sign-In and OpenID Connect.

  • Set up the environment to implement the API specification provided using Java Spring
  • Implement Google Sign-In
  • Implement authenticated requests and retrieve data
  • Implement user session monitoring
  • Implement two-factor authentication


You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.