Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 761 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 761 Bytes

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.