Companies Home Search Profile

Google OAuth, PHP-Symfony, API-Platform, JWT

Focused View

Yusuf Bi̇beroğlu

40:00

6 View
  • 1. Create project, install packages and configuration.mp4
    21:59
  • 2. Create google client id and client secret.mp4
    02:29
  • 3. Create functions and configuration for google oauth.mp4
    13:23
  • 4. Test database.mp4
    00:29
  • 5. Test requests.mp4
    01:40
  • Description


    Symfony API Platform application using "lexik/jwt-authentication-bundle" and league/oauth2-google for authentication.

    What You'll Learn?


    • Students will be able to define and implement secure user authentication using Google OAuth in a Symfony application.
    • Learners will be able to generate and manage JWT (JSON Web Tokens) for securing API endpoints, ensuring data integrity and security.
    • Participants will gain the skills to design and develop scalable RESTful APIs using Symfony's API Platform.
    • Students will complete a case study to manage a project from concept to completion, applying best practices in API security, performance, and scalability.

    Who is this for?


  • This course on Symfony API Platform with Google OAuth and JWT, a targeted student description could be: Aspiring Web Developers: Example: Individuals interested in web application development, particularly those who want to learn about implementing secure authentication and API development using modern PHP frameworks. PHP Developers Seeking to Advance Their Skills: Example: PHP developers looking to enhance their expertise with Symfony and API Platform for building more secure and scalable web applications. Technology Enthusiasts and Hobbyists: Example: Tech enthusiasts and hobbyists interested in understanding the intricacies of OAuth, JWT, and RESTful API development. Career Switchers into Web Development: Example: Professionals aiming to switch careers to web development, seeking practical knowledge in contemporary web technologies and security practices.
  • What You Need to Know?


  • Basic Understanding of Web Development: Example: Familiarity with fundamental web development concepts, such as HTML, CSS, and basic programming logic. PHP Knowledge: Example: A working knowledge of PHP is necessary, as Symfony is a PHP framework. Basic Understanding of Symfony Framework: Example: Prior exposure to the Symfony framework, even at a beginner level, will be helpful. Familiarity with RESTful Concepts: Example: Understanding of RESTful API principles and HTTP methods is beneficial. No Programming Experience Required: Example: Programming experience is not required. You will learn everything you need to know about implementing OAuth and JWT within the course.
  • More details


    Description

    In this symfony api project, I explained how to authenticate users with their Google accounts.


    Symfony application using Google OAuth for authentication. When a user signs in through Google, our system will check if the user already exists in our database. If not, it will create a new user account. Once authenticated, either as a new or existing user, our application will generate a JSON Web Token (JWT). Built on the API Platform.


    Creating Symfony Applications

    symfony new my_project_directory

    The Symfony MakerBundle

    composer require --dev symfony/maker-bundle

    API Platform

    composer require api

    doctrine/annotations

    composer require doctrine/annotations

    LexikJWTAuthenticationBundle

    composer require "lexik/jwt-authentication-bundle"

    Google Provider for OAuth 2.0 Client

    composer require league/oauth2-google


    English Explanation of the Project

    Introduction

    This project revolves around integrating Google Sign-In in a Symfony-based application. The primary goal is to provide users with a seamless and secure login experience using their Google accounts. To achieve this, we leveraged the thephpleague/oauth2-google package. Additionally, we utilized JWT (JSON Web Tokens) for secure and efficient user authentication, particularly in API requests.


    Choice of Technology

    We chose Symfony for its robust framework capabilities, offering extensive support for web application development. API Platform was selected for its ability to easily create high-performance RESTful APIs. The thephpleague/oauth2-google package was particularly useful for handling Google OAuth 2.0 authentication flows in a standardized manner.


    Architectural Overview

    The application architecture is designed to support RESTful API standards, primarily managed through Symfony and API Platform. This structure allows for efficient handling of HTTP requests and responses, and it seamlessly integrates with the Google authentication process.


    Google Sign-In Integration

    Integration of Google Sign-In was accomplished by incorporating the thephpleague/oauth2-google package into the Symfony project. This package facilitated the authentication process with Google's OAuth 2.0 servers, allowing users to securely log in with their Google accounts. We managed the OAuth 2.0 flow, including token retrieval and validation, ensuring a secure login process.


    JWT for Authentication

    JWT played a crucial role in authenticating API requests. After successful Google Sign-In, users were provided with a JWT, which was used for subsequent API requests to authenticate the user. This token-based approach enhances security by ensuring that each request is verified and authenticated, minimizing the risk of unauthorized access.


    Challenges and Solutions

    The integration presented several challenges, particularly in aligning the Google authentication flow with the existing Symfony framework and ensuring seamless JWT handling. These were overcome through careful configuration and testing, ensuring that the authentication process was both secure and user-friendly.


    Conclusion

    The project successfully implemented Google Sign-In and JWT authentication in a Symfony application with API Platform, enhancing both the user experience and security. This implementation demonstrates the effective use of third-party authentication services and token-based authentication in modern web application development.


    Who this course is for:

    • This course on Symfony API Platform with Google OAuth and JWT, a targeted student description could be: Aspiring Web Developers: Example: Individuals interested in web application development, particularly those who want to learn about implementing secure authentication and API development using modern PHP frameworks. PHP Developers Seeking to Advance Their Skills: Example: PHP developers looking to enhance their expertise with Symfony and API Platform for building more secure and scalable web applications. Technology Enthusiasts and Hobbyists: Example: Tech enthusiasts and hobbyists interested in understanding the intricacies of OAuth, JWT, and RESTful API development. Career Switchers into Web Development: Example: Professionals aiming to switch careers to web development, seeking practical knowledge in contemporary web technologies and security practices.

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Yusuf Bi̇beroğlu
    Yusuf Bi̇beroğlu
    Instructor's Courses
    As a PHP and Dart developer, I have utilized Symfony and Flutter frameworks to produce seamless user experiences for backend applications like RESTFul and GraphQL API services, as well as multi-platform mobile applications. ( PHP - Symfony, Wordpress,  Shopify,  Flutter,  Dart,  Firebase )My ultimate career goal is to constantly evolve and drive forward innovation.
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 5
    • duration 40:00
    • Release Date 2024/04/11