In this course, you will learn how to work with various API authentication methods using Go. You’ll explore the basics of API Key authentication, manage sessions using cookies, and interact with APIs using JSON Web Tokens (JWTs). By the end of this course, you’ll be able to access and interact with protected APIs securely.
Overview
Syllabus
- Unit 1: API Authentication with Go: Accessing Protected Routes Using API Keys
- Exploring API Request Failures in Go
- Adding API Key Authentication in Go
- Fixing API Key Authentication in Go
- Loading API Key from Environment File in Go
- Secure API POST Request in Go
- Unit 2: Session-Based Authentication with Go: Managing User Sessions and Accessing Protected Resources
- Sign Up Using HTTP Requests in Go
- Fixing Session Management in Go API Requests
- Managing Session-Based Authentication in Go
- Improving Session Management with Logout in Go
- Managing Sessions with Go
- Unit 3: Introduction to JWTs: Authenticate and Access Protected Endpoints with Go
- Handling API Logins with JWT in Go
- Extract and Print JWT Tokens in Go
- Fixing JWT Authentication Bug in Go
- Using JWTs to Access Protected API Endpoints in Go
- Authenticate and Access Protected API Endpoint with JWT in Go
- Unit 4: Refreshing JWTs and Signing Out with Go
- Refreshing JWT Tokens in Go
- Fixing Logout Functionality in Go
- Completing the Logout Process in Go