/ktor-authentication-tutorial

Blog series on authentication with Ktor

Primary LanguageKotlin

Authentication with Ktor

This is a sample project to demonstrate how to implement authentication with Ktor.

Introduction

This project uses the following technologies:

  • Kotlin
  • Ktor
  • Gradle

The project is a simple web application that allows users to login and logout. The objective is to demonstrate how to implement various authentication mechanisms with Ktor.

Chapters

The content is organized into chapters. Once a chapter is ready, it will be linked here.

  • Chapter 1: Basic Authentication
  • Chapter 2: Form Authentication
  • Chapter 3: Json Web Token Authentication (JWT)
  • Chapter 4: OAuth2 Authentication
  • Chapter 5: CORS Configuration and CSRF Prevention
  • Chapter 6: Session Management
  • Chapter 7: Rate Limiting
  • Chapter 8: Testing

Running the project

./gradlew runFatJar