The Nuts and Bolts of OAuth 2.0

Covering OAuth 2.0, OpenID, PKCE, deprecated flows, JWTs, API Gateways, and scopes. No programming knowledge needed

  • 0.0 (0 Reviews)
  • 0 Students
  • 65 Lessons
  • Aaron Parecki

Course Overview

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!

See more

FAQ

FAQ area empty

Course curriculum

16 chương 65 bài học 3 giờ 32 phút 7 bài học thử miễn phí
Chương 1 Welcome
Chương 2 API Security Concepts
Chương 3 OAuth Clients
  • Introduction to OAuth Clients 1:21
  • Preparing for the Exercises
Chương 4 OAuth for Server-Side Applications
  • Registering an Application 4:15
  • Authorization Code Flow for Web Applications 11:01
  • OAuth for Web Server Applications
Chương 5 OAuth for Native Applications
  • The Unique Issues of Native Apps 1:10
  • Redirect URLs for Native Apps 3:34
  • Browser Security for Native Apps 4:13
  • Authorization Code Flow for Native Apps 9:07
  • Refresh Tokens for Native Apps 4:10
  • Using Refresh Tokens
Chương 6 OAuth for Single-Page Applications
  • Problems with the Browser Environment 4:43
  • Authorization Code Flow for Single-Page Applications 8:37
  • Protecting Tokens in the Browser 5:19
  • Securing the Browser with a Backend 2:30
  • OAuth for Single-Page Applications
Chương 7 OAuth for the Internet of Things
  • Limitations of IoT and Smarthome Devices 3:53
  • Device Flow for Browserless Devices 4:48
Chương 8 Client Credentials Flow
  • When to use the Client Credentials Grant 2:27
  • Client Credentials Grant for Machine-to-Machine Applications 2:04
  • Getting an Access Token with the Client Credentials Grant
Chương 9 Introduction to OpenID Connect
  • What is an ID Token 3:34
  • How ID Tokens are Different from Access Tokens 2:32
  • Obtaining an ID Token 5:23
  • Hybrid OpenID Connect Flows 4:29
  • Validating and Using an ID Token 6:24
  • Getting the User's Name and Email Address using OpenID Connect
Chương 10 Protecting an API with OAuth
  • Intro to Protecting an API with OAuth 1:17
Chương 11 Access Token Types and their Tradeoffs
  • Reference Tokens vs Self-Encoded Tokens 3:35
  • Pros and Cons of Reference Tokens 3:52
  • Pros and Cons of Self-Encoded Tokens 4:50
  • Protecting an API Endpoint with Access Tokens
Chương 12 JWT Access Tokens
  • The Structure of a JWT Access Token 5:23
  • Remote Token Introspection 4:35
  • Local Token Validation 6:32
  • The Best of Both Worlds: Using an API Gateway 3:59
  • JWT Access Tokens
Chương 13 Choosing Token Lifetimes
  • Increasing Security with Short Token Lifetimes 2:06
  • Improving User Experience with Long Token Lifetimes 3:50
  • Contextually Choosing Token Lifetimes 4:38
  • Token Lifetime Quiz
Chương 14 Handling Revoked or Invalidated Access Tokens
  • Reasons Why an Access Token May become Invalidated 3:31
  • The Problem with Local Validation 4:10
  • Token Lifetime Considerations 1:31
  • How Applications can Revoke Access Tokens 2:19
  • Handling Revoked Tokens
Chương 15 OAuth Scopes
  • The Purpose of OAuth Scopes 2:47
  • Defining Scopes for your API 4:43
  • Prompting the User for Consent 3:01
  • Enforce Scopes in your API
Chương 16 Conclusion
  • The Future of OAuth: OAuth 2.1 2:58
  • Additional Resources and Further Reading 1:51
  • Thank You for Taking the Course! 1:16

Requirment

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

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

Outcomes

  • The basics of OAuth 2.0 and OpenID Connect

  • How to implement an OAuth client from scratch

  • Best practices for developing OAuth applications (server-side, native, and SPAs)

  • How to protect an API with JWT access tokens

Instructor

...
Aaron Parecki

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all
Một sản phẩm của Công ty Cổ phần Thương mại Vạn Tín Việt·vantinviet.com