trait SessionDirectives extends OneOffSessionDirectives with RefreshableSessionDirectives
Manages cookie-based sessions with optional refresh tokens. A refresh token is written to a separate cookie.
- Alphabetic
- By Inheritance
- SessionDirectives
- RefreshableSessionDirectives
- OneOffSessionDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def invalidateSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive0
Invalidate the session cookie.
Invalidate the session cookie.
If refreshable, also removes the refresh token cookie and the refresh token token (from the client and token store), if present.
Note that you should use
refreshable
if you use refreshable systems even only for some users. - 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def optionalSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[Option[T]]
Read an optional session from the session cookie.
- def requiredSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[T]
Read a required session from the session cookie.
- def session[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[SessionResult[T]]
Read a session from the session cookie, wrapped in SessionResult describing the possible success/failure outcomes.
Read a session from the session cookie, wrapped in SessionResult describing the possible success/failure outcomes.
If refreshable, tries to create a new session based on the refresh token cookie.
- def setSession[T](sc: SessionContinuity[T], st: SetSessionTransport, v: T): Directive0
Set the session cookie with the session content.
Set the session cookie with the session content. The content is signed, optionally encrypted and with an optional expiry date.
If refreshable, generates a new token (removing old ones) and stores it in the refresh token cookie.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def touchOptionalSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[Option[T]]
Sets the session cookie again with the same data.
Sets the session cookie again with the same data. Useful when using the SessionConfig.sessionMaxAgeSeconds option, as it sets the expiry date anew.
- def touchRequiredSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[T]
Sets the session cookie again with the same data.
Sets the session cookie again with the same data. Useful when using the SessionConfig.sessionMaxAgeSeconds option, as it sets the expiry date anew.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated