Login with Google

  • A user clicks on the "Login with Google" button.

  • Redirect User to Google Login Page:

    • The JFW redirects the user to the Google OAuth 2.0 login page.

  • The user enters their Google credentials:

    • The user inputs their Google email and password.

  • The user grants permissions:

    • After authentication, Google asks the user to grant permission to access their information through the application.

  • Retrieve Authorization Code:

    • Upon consent, Google redirects the user to the application with an authorization code.

  • Exchange Authorization Code for Access Token:

    • The application sends the authorization code to Google's token endpoint to exchange it for an access token.

  • Retrieve the User Information:

    • The application requests the user's profile information from Google using the access token.

  • The user logged in:

    • The application creates a new user session or updates an existing session based on the information retrieved from Google.

  • Display User Information:

    • After a successful login, the application displays the user's profile information or proceeds with the user-specific workflow.

Last updated