Remove security-in-http4s
article thumbnail

Configuring Http4s Security: CORS and CSRF

Rock the JVM

Introduction With the growing number of cyber-attacks ever increasing, there’s a growing need for security in the applications we build. Http4s comes with several easily configurable security features and in this article, we will cover the two most common, CORS and CSRF. Here’s how this would work in 3 simple steps.

Scala 58
article thumbnail

Two-Factor Authentication in Scala with Http4s

Rock the JVM

You’re reading a giant article about a real-life use of the Http4s library. If you want to master the Typelevel Scala libraries (including Http4s) with real-life practice, check out the Typelevel Rite of Passage course, a full-stack project-based course. It’s my biggest and most jam-packed course yet. val ZxingVersion = "3.5.1"

Scala 92
article thumbnail

HTTP Authentication with Scala and Http4s

Rock the JVM

You’re reading a big article about the Http4s library. Http4s is one of the most powerful libraries in the Scala ecosystem, and it’s part of the Typelevel stack. Authentication Throughout this article, we will be using the different authentication methods to grant a user access to Http4s Routes. val scala3Version = "3.2.2"

Scala 52