|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/angular-json-web-tokens-jwt-and-php/
课程评论:没有评论
课程名称:Angular与PHP及JSON网络令牌(JWT) 概述:本课程将引导您逐步创建一个Angular应用程序,该应用程序使用JSON Web Tokens(JWT),并提供用户登录和登出的功能。课程中已经对Angular部分进行了更新,采用了Observable、Subject和Angular Material。更新内容包括改进的refresh token功能,采用httponly cookie保存刷新令牌,项目已转换为使用Signals API。 本课程非常适合初学者到中级学生,特别是希望创建实用应用程序并偏好实践教学方法的学习者。在课程中,您将实际学习以下内容: - 模板驱动模型表单 - 常见用户模型和使用ngModel与接口的绑定 - 服务和外部库的依赖注入 - 使用JWT(JSON Web Tokens)创建和使用认证服务,包括在PHP和Angular中的应用 - 保护URL路由的守卫功能 - 通过HttpClient模块进行GET和POST请求的交互 - Observables和Behavior Subject的应用 - 使用Angular Material Snackbar显示闪烁消息 您可以跟随课程并在学习期间尝试示例。课程项目文件已更新,以正确取消订阅服务,避免潜在的内存泄漏。因安全性提高,代码现在实现了将刷新令牌保存到http-only cookie中的功能。此外,最新更新还添加了JWT刷新令牌的解释和演示。
Update: The whole Angular part of the course has been updated to use Observables, Subjects, and Angular Material.Update2: Refresh token functionality improved using httponly cookie.Update3: Project is converted to use Singals API.This course will lead you through the step by step creation of an Angular application, which uses JSON Web Tokens (JWT) and gives an opportunity to log in and log out users. You will also understand how to integrate client-side Angular with server-side PHP for complete application development.It is suitable for beginning to intermediate students who would like to create practical applications and prefer a hands-on approach of teaching. During the course you will learn how to use in practice:template-driven model formscommon user models and bindings using ngModel and interfacesdependency injection of services and external librariesJWT (JSON Web Tokens) in order to create and use for authentication service, both in PHP and Angularguards to protect URL routesHttpClient module for interaction with get and post requestsObservables and Behaviour subjectAngular Material Snackbar for displaying flash messagesYou can follow along and try the examples alongside.The course project files are updated in order to properly unsubscribe from services and avoid potential memory leaks.Because of improved security the code now features saving the refresh token inside a http-only cookie.Latest Update: Added explanation and demonstration of JWT refresh tokens