Skip to content

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

Notifications You must be signed in to change notification settings

AndreasVolkmann/ktor-auth-jwt-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages