Skip to content
Kagiri11Public

About

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

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages