CSRF

org.http4s.server.middleware.CSRF
See theCSRF companion class
object CSRF

Attributes

Companion
class
Source
CSRF.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CSRF.type

Members list

Type members

Classlikes

class CSRFBuilder[F[_], G[_]]

Attributes

Source
CSRF.scala
Supertypes
class Object
trait Matchable
class Any
case object CSRFCheckFailed extends Exception, NoStackTrace

Attributes

Source
CSRF.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Types

type CSRFCheck[F[_], G[_]] = (Request[G], F[Response[G]]) => F[Response[G]]

Attributes

Source
CSRF.scala

Attributes

Source
CSRF.scala
type CSRFToken

Attributes

Source
CSRF.scala

Value members

Concrete methods

Attributes

Source
CSRF.scala
def buildSigningKey[F[_]](array: Array[Byte])(implicit F: Async[F]): F[ByteVector]

Build a new HMACSHA1 Key for our CSRF Middleware from key bytes.

Build a new HMACSHA1 Key for our CSRF Middleware from key bytes. This operation is unsafe, in that any amount less than 20 bytes will throw an exception when loaded into Mac. Any keys larger than 64 bytes are just hashed.

For more information, refer to: https://datatracker.ietf.org/doc/html/rfc2104#section-3

Use for loading a key from a config file, after having generated one safely

Attributes

Source
CSRF.scala
def checkCSRFDefault[F[_], G[_]](implicit F: Async[F]): (CSRF[F, G]) => F => G

Attributes

Source
CSRF.scala
def checkCSRFinHeaderAndForm[F[_], G[_] : Concurrent](fieldName: String, nt: FunctionK[G, F])(implicit evidence$1: Concurrent[G], F: Async[F]): (CSRF[F, G]) => F => G

Attributes

Source
CSRF.scala

Check origin matches our proposed origin.

Check origin matches our proposed origin.

Attributes

Returns
Source
CSRF.scala
def generateSigningKey[F[_]]()(implicit F: Async[F]): F[ByteVector]

Generate a signing Key for the CSRF token

Generate a signing Key for the CSRF token

Attributes

Source
CSRF.scala

A Constant-time string equality

A Constant-time string equality

Attributes

Source
CSRF.scala

Attributes

Source
CSRF.scala

A Constant-time string equality

A Constant-time string equality

Attributes

Source
CSRF.scala

Attributes

Source
CSRF.scala

Attributes

Source
CSRF.scala

Attributes

Source
CSRF.scala

Concrete fields

Attributes

Source
CSRF.scala

Attributes

Source
CSRF.scala