JWT authentication + mongodb with Ktor

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • frank_jwt

    JSON Web Token implementation in Rust.

  • Authenticating with ktor Ktor makes it very easy to create an authentication layer. As we all know, security is a vital ingredient in most applications, as it helps in the effective use of the application. There are various means of authenticating our apps but we will be using JWT today. For more info about JWT visit Link. To utilize JWT, first create a JWTConfig.kt class and add the following code:

  • Docker Compose

    Define and run multi-container applications with Docker

  • What is a Docker compose file? As stated in the Docker docs Link; When you’re developing software, the ability to run an application in an isolated environment and interact with it is crucial. The Compose command line tool can be used to create the environment and interact with it. The Compose file provides a way to document and configure all of the application’s service dependencies (databases, queues, caches, web service APIs, etc). Using the Compose command line tool you can create and start one or more containers for each dependency with a single command (docker-compose up). Together, these features provide a convenient way for developers to get started on a project. Compose can reduce a multi-page “developer getting started guide” to a single machine readable Compose file and a few commands. The code adds and downloads an image of the MongoDB and exposes its ports.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts