AllowlistFilter

uk.gov.hmrc.play.bootstrap.frontend.filters.AllowlistFilter
class AllowlistFilter(config: Configuration, val mat: Materializer) extends Filter

Attributes

Graph
Supertypes
trait Filter
trait EssentialFilter
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

case class AllowlistFilterConfig(allowlist: Seq[String], redirectUrlWhenDenied: Call, excludedPaths: Seq[Call])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def apply(f: RequestHeader => Future[Result])(rh: RequestHeader): Future[Result]

Apply the filter, given the request header and a function to call the next operation.

Apply the filter, given the request header and a function to call the next operation.

Value parameters

f

A function to call the next operation. Call this to continue normally with the current request. You do not need to call this function if you want to generate a result in a different way.

rh

The RequestHeader.

Attributes

Definition Classes
Filter
protected def excluded(rh: RequestHeader): Boolean
protected def response: Result

Deprecated methods

def whitelist: Seq[String]

Attributes

Deprecated
true

Inherited methods

def apply(next: EssentialAction): EssentialAction

Attributes

Inherited from:
Filter
def asJava: EssentialFilter

Attributes

Inherited from:
EssentialFilter

Concrete fields

lazy val allowlist: Seq[String]
lazy val excludedPaths: Seq[Call]
override val mat: Materializer
lazy val redirectUrlWhenDenied: Call