Skip to content

A small project to show how to use Ktor server to provide auth using JWT. Uses Kmongo for database services.

Notifications You must be signed in to change notification settings

Kagiri11/KtorJWT

Repository files navigation

JWT Auth in Ktor 🔑

A pet project showing how to provide JWT using a Ktor service.

Content

  • Server Configuration
  • Utils
  • JWT

Server Configuration 🔧

We first fire off our server with a Netty engine configuration. It is in this server's application pipeline that we shall add our functionalities/ plugins.

Utils

In here we have the Kmongo database which we use to store our users. Also hosted in here is our token manager class that reads properties from a config file from our projects resources.

JWT

Using the token manager above, we verify tokens inside the authentication config block in our server's application line.

About

A small project to show how to use Ktor server to provide auth using JWT. Uses Kmongo for database services.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages