Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

The Nuts and Bolts of OAuth 2.0

Kiến thức cốt lõi về OAuth 2.0

Kiến thức cốt lõi về OAuth 2.0

Bao gồm OAuth 2.0, OpenID, PKCE, các luồng cũ, JWTs, API Gateways và scopes. Không cần kiến thức lập trình

4.6
(12,143 đánh giá)
50,289 học viên
Giảng viên
Aaron Parecki
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 1.459.000đ -97%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
3.5 giờ video
52 bài giảng
5 bài quiz
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 18/03/2026

Bạn sẽ học được gì

Kiến thức cơ bản về OAuth 2.0 và OpenID Connect
Cách triển khai OAuth client từ đầu
Các phương pháp hay nhất khi phát triển ứng dụng OAuth (server-side, native và SPAs)
Cách bảo vệ API bằng JWT access tokens

Yêu cầu

Hiểu biết cơ bản về HTTP requests, responses và JSON
Có kinh nghiệm sử dụng Postman, curl hoặc bất kỳ HTTP client nào khác

Đối tượng phù hợp

Kiến trúc sư phần mềm, nhà phát triển ứng dụng hoặc người ra quyết định kỹ thuật
Nhà phát triển API muốn bảo mật API tốt hơn

Nội dung khóa học

16 phần • 51 bài giảng
1 Giới thiệu khóa học
2 Lược sử về OAuth
3 Cách OAuth nâng cao bảo mật ứng dụng
4 OAuth so với OpenID Connect
1 Các vai trò trong OAuth
2 Các loại ứng dụng
3 Sự đồng ý của người dùng
4 Front Channel so với Back Channel
5 Định danh ứng dụng
1 Giới thiệu về OAuth Clients
1 Đăng ký ứng dụng
2 Authorization Code Flow cho ứng dụng Web
1 Các vấn đề đặc thù của Native Apps
2 Redirect URLs cho Native Apps
3 Bảo mật trình duyệt cho Native Apps
4 Authorization Code Flow cho Native Apps
5 Refresh Tokens cho Native Apps
1 Vấn đề với môi trường trình duyệt
2 Authorization Code Flow cho Single-Page Applications
3 Bảo vệ Tokens trong trình duyệt
4 Bảo mật trình duyệt với Backend
1 Giới hạn của thiết bị IoT và Smarthome
2 Device Flow cho thiết bị không có trình duyệt
1 Khi nào sử dụng Client Credentials Grant
2 Client Credentials Grant cho ứng dụng Máy-với-Máy
1 ID Token là gì
2 Sự khác biệt giữa ID Tokens và Access Tokens
3 Cách lấy ID Token
4 Hybrid OpenID Connect Flows
5 Xác thực và sử dụng ID Token
1 Giới thiệu về bảo vệ API bằng OAuth
1 Reference Tokens so với Self-Encoded Tokens
2 Ưu nhược điểm của Reference Tokens
3 Ưu nhược điểm của Self-Encoded Tokens
1 Cấu trúc của JWT Access Token
2 Remote Token Introspection
3 Local Token Validation
4 Kết hợp ưu điểm: Sử dụng API Gateway
1 Tăng bảo mật với Token có thời gian sống ngắn
2 Cải thiện trải nghiệm người dùng với Token có thời gian sống dài
3 Chọn thời gian sống Token theo ngữ cảnh
1 Lý do Access Token có thể bị vô hiệu hóa
2 Vấn đề với Local Validation
3 Cân nhắc về thời gian sống Token
4 Cách ứng dụng có thể thu hồi Access Tokens
1 Mục đích của OAuth Scopes
2 Định nghĩa Scopes cho API của bạn
3 Yêu cầu sự đồng ý từ người dùng
1 Tương lai của OAuth: OAuth 2.1
2 Tài nguyên bổ sung và đọc thêm
3 Cảm ơn bạn đã tham gia khóa học!

Giới thiệu khóa học

OAuth 2.0 has become the industry standard for providing secure access to web APIs, allowing applications to access users' data without compromising security. Companies around the world add OAuth to their APIs to enable secure access from their own mobile apps and third-party IoT devices and even access to banking APIs.

Security expert Aaron Parecki breaks down each of the OAuth flows (grant types) and applies them to use cases such as implementing OAuth for web apps, native apps, and SPAs. In addition to learning how applications can use OAuth to access APIs, you’ll learn how to use OpenID Connect to get the user’s identity.

If you're building an API, you'll learn the differences and tradeoffs between different access token formats, how to choose an appropriate access token lifetime, and how to design scopes to protect various parts of your APIs.

This course includes the latest recommendations from the OAuth working group including covering everything from using PKCE for all types of applications to explaining the motivations behind dropping the Implicit and Password grants from the spec. These security recommendations and more will be rolled up into the new OAuth 2.1 update, so this course will give you an excellent head start on learning the best way to use OAuth going forward!

By the end of this course, you’ll understand:

  • The problems OAuth was created to solve

  • The basics of OAuth 2.0 and OpenID Connect

  • Best practices for developing web-based and native OAuth apps

  • The difference between local and remote access token validation

  • How to validate JWT access tokens

And you’ll be able to:

  • Implement an OAuth client from scratch

  • Protect the OAuth flows in native and JavaScript apps

  • Use OpenID Connect to get the user’s name email address

  • Protect an API with OAuth access tokens

  • Design scopes to protect various parts of your API

This course is for you because...

  • You’re a software architect, application developer, or technical decision maker

  • You work with APIs, web apps, mobile apps, or microservices

  • You want to deepen your understanding of application security and become a technical leader

Prerequisites

  • A basic understanding of HTTP requests, responses, and JSON

  • No programming language knowledge is necessary since the exercises can be completed without writing any code!

To follow along with the exercises, you'll also need:

  • Experience with Postman, curl, or any other HTTP client

  • A free Auth0 Developer account

This course also gives you exclusive access to an interactive web-based tool that will guide you through the exercises and give feedback along the way! It's like having the instructor provide real-time feedback as you are working through the exercises!

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Api Security
Hiển thị tất cả khoá học Oauth
Hiển thị tất cả khoá học Openid Connect
Hiển thị tất cả khoá học Web Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊