Programming Study日本語

Disclosure: We earn a commission from Udemy when you buy a course through links on this page.

Google OAuth, PHP-Symfony, API-Platform, JWT (2024)

Google OAuth, PHP-Symfony, API-Platform, JWT (2024)

Udemy · English

About this course

Language
English
Category
Provider
Udemy
Data updated

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 Applicationssymfony new my_project_directoryThe Symfony MakerBundlecomposer require --dev symfony/maker-bundleAPI Platformcomposer require apidoctrine/annotationscomposer require doctrine/annotationsLexikJWTAuthenticationBundlecomposer require "lexik/jwt-authentication-bundle"Google Provider for OAuth 2.0 Clientcomposer require league/oauth2-googleEnglish Explanation of the ProjectIntroductionThis 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 TechnologyWe 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 OverviewThe 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 int…

Check the price and reviews on the Udemy course page.

Courses in the same category