object CSRF
- Companion
- class
class Object
trait Matchable
class Any
Type members
Classlikes
Types
Value members
Concrete methods
def apply[F[_], G[_]](key: ByteVector, headerCheck: Request[G] => Boolean)(implicit evidence$3: Async[F], evidence$4: Applicative[G]): CSRFBuilder[F, G]
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.
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://tools.ietf.org/html/rfc2104#section-3
Use for loading a key from a config file, after having generated one safely
def checkCSRFinHeaderAndForm[F[_], G[_]](fieldName: String, nt: FunctionK[G, F])(implicit evidence$13: Concurrent[G], F: Async[F]): CSRF[F, G] => F => G
def withDefaultOriginCheck[F[_], G[_]](key: ByteVector, host: String, scheme: Scheme, port: Option[Int])(implicit evidence$5: Async[F], evidence$6: Applicative[G]): CSRFBuilder[F, G]
def withDefaultOriginCheckFormAware[F[_], G[_]](fieldName: String, nt: FunctionK[G, F])(key: ByteVector, host: String, scheme: Scheme, port: Option[Int])(implicit evidence$7: Async[F], evidence$8: Concurrent[G]): CSRFBuilder[F, G]
def withGeneratedKey[F[_], G[_]](headerCheck: Request[G] => Boolean)(implicit evidence$9: Async[F], evidence$10: Applicative[G]): F[CSRFBuilder[F, G]]
def withKeyBytes[F[_], G[_]](keyBytes: Array[Byte], headerCheck: Request[G] => Boolean)(implicit evidence$11: Async[F], evidence$12: Applicative[G]): F[CSRFBuilder[F, G]]