
Demonstrates authenticating a frontend app with Google login against a Spring Boot backend, then displays user data after sign-in, illustrating a framework-agnostic login flow across Angular, Vue, Flutter, or Ionic.
Install essential tools for the course: Java development kit, an editor, Postman, Maven, Git, and the described databases with maya script, plus environment variables setup.
Explore building a social login with Google for a Spring Boot app, using Google authentication to authorize users while separating authentication from application data.
Create a Google Cloud Console project, configure the external consent screen, and prepare credentials to allow your app to access user Google account data.
Create credentials for your Google login integration by selecting the application type, naming your app, and configuring localhost:9000 as the redirect, then copy the client id and client secret.
Generate a new Spring Boot project from Spring Initializr, select the latest version, name the app, and add Spring Web, Spring Data JPA, and Google login dependencies for database integration.
Import the extracted social spring project into IntelliJ, run a clean Maven install to download dependencies, reload imports, and prepare to implement a social logging endpoint in the next video.
Implement a Spring Boot controller with a class-level request mapping and a simple get endpoint that returns a welcome message, forming the foundation for Google login integration.
Configure Spring security for Google login by adding clientId and clientSecret to the application properties. Paste the Google console values into the config and run the server to enable authentication.
Create a security config that forces all requests to be authenticated by redirecting users to Google for login, using the Google console client id and client secret.
Test login with a valid Google account by starting the app, authenticating, and observing the redirect to home; learn how to obtain the authenticated user info for the database.
Use the authenticated principal to fetch the user data map, then call the current user details endpoint to obtain email, full name, and profile picture from Google login.
Download Visual Studio Code, install it, open the editor, and start building a front-end that calls the backend springboard API, handles Google login, and displays user info in the browser.
Set up a frontend page with index.html, run it on a live server, and connect any framework—React, Angular, Vue.js, Flutter, Ionic, or React Native—to the built back end API.
Explore integrating bootstrap 5 to style a frontend app, applying container, margin, and text classes, and building a simple responsive layout for a social app.
Add a Google login link using Bootstrap grid, create a login button that redirects to Google authentication, and implement post-login redirection to the front end homepage.
Demonstrates redirecting a user to the frontend index after login by styling a bootstrap button and configuring a redirect view, then testing the flow.
After login, this lecture demonstrates a fetch API call to get current user data from localhost:9000 and display it on the home page using JavaScript.
Resolve cors by serving frontend assets from the same domain as the backend and redirecting login to the home page after Google authentication. Build with mvn clean install.
Understand the complete Google authentication flow in a frontend app with Spring Boot, from index access to Google authentication, redirects, and displaying user information on the homepage.
Design and implement a user profile on the homepage by displaying the profile picture, full name, and email, populated from user data via JavaScript.
Perform end-to-end testing of a frontend app with multiple Google user logins to validate Google login integration and profile information.
In this course you will learn to create a frontend application using HTML, CSS, JavaSCript and Bootstrap.
Then we will learn to create a Springboot application. After that, we will move on to create few REST API endpoints in our Springboot Application.
Next we will move on to configure google console dashbaord to register our Springboot application.
Then we will make a connection from our Springboot application with Google console.
After that we will configure Spring Security in our Springboot application in such a way that only allowed endpoints will not need authentication. But for other endpoints user will be redirected to Google Authentication page.
On Google Authentication page user will fill out its google credentials. If entered credentials are the correct user will be redricted to our Springboot Application.
Now its time for us to create our frontend application and we will connect this frontend with our Springboot application.
So user will now come to our Frontend, then he will login with google.
On successful login we will fetch user information from google and show it to user on the next page.
With Login with Google functionality we don't have to keep a seperate user database with us rather we can ask google to authenticate our user on our application's behalf. If successfully authenticated then google will give us all the profile information of the user.
Using this information we can do further operation in our application.