case class CsrfStateSettings(cookieName: String = "CsrfState", cookiePath: String = "/", cookieDomain: Option[String] = None, secureCookie: Boolean = true, httpOnlyCookie: Boolean = true, sameSite: Option[SameSite] = Some(Cookie.SameSite.Lax), expirationTime: FiniteDuration = 5 minutes) extends Product with Serializable
The settings for the Csrf State.
- cookieName
The cookie name.
- cookiePath
The cookie path.
- cookieDomain
The cookie domain.
- secureCookie
Whether this cookie is secured, sent only for HTTPS requests.
- httpOnlyCookie
Whether this cookie is HTTP only, i.e. not accessible from client-side JavaScript code.
- sameSite
The SameSite attribute for this cookie (for CSRF protection).
- expirationTime
State expiration. Defaults to 5 minutes which provides sufficient time to log in, but not too much. This is a balance between convenience and security.
- Alphabetic
- By Inheritance
- CsrfStateSettings
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CsrfStateSettings(cookieName: String = "CsrfState", cookiePath: String = "/", cookieDomain: Option[String] = None, secureCookie: Boolean = true, httpOnlyCookie: Boolean = true, sameSite: Option[SameSite] = Some(Cookie.SameSite.Lax), expirationTime: FiniteDuration = 5 minutes)
- cookieName
The cookie name.
- cookiePath
The cookie path.
- cookieDomain
The cookie domain.
- secureCookie
Whether this cookie is secured, sent only for HTTPS requests.
- httpOnlyCookie
Whether this cookie is HTTP only, i.e. not accessible from client-side JavaScript code.
- sameSite
The SameSite attribute for this cookie (for CSRF protection).
- expirationTime
State expiration. Defaults to 5 minutes which provides sufficient time to log in, but not too much. This is a balance between convenience and security.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val cookieDomain: Option[String]
- val cookieName: String
- val cookiePath: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expirationTime: FiniteDuration
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val httpOnlyCookie: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val sameSite: Option[SameSite]
- val secureCookie: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()