wyaeld / ktor-auth-jwt-sample

A simple but slightly more elaborate example of how to include JWT in the Ktor application flow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ktor Authentication using Json Web Token

A simple but slightly more elaborate example of how to include JWT in the Ktor application flow.

Module.kt contains the server setup, including the Routing.

There is a public login route, which responds with JWTs.

These are used to access the secret route.

The JWT configuration can be found in JwtConfig.kt.

Tests can be found in ServerTest.kt

About

A simple but slightly more elaborate example of how to include JWT in the Ktor application flow.


Languages

Language:Kotlin 100.0%