SecurityStandards

io.github.frikit.twirlspec.wcag.SecurityStandards
object SecurityStandards extends RuleSet

Markup that is a safety problem rather than an accessibility one.

Attributes

Source
SecurityStandards.scala
Graph
Supertypes
trait RuleSet
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def csrfToken(tokenName: String = ...): Rule

A form posting back to this service carries Play's CSRF token, without which Play's filter answers 403:

A form posting back to this service carries Play's CSRF token, without which Play's filter answers 403:

override def standardsRules = super.standardsRules :+ SecurityStandards.csrfToken()

It is in no rule set, because it does not hold of every page: a form may post elsewhere, a service may send its token another way or exempt a route. It blocks, as whoever adds it has asked for it. A form posting to a full address is taken to leave the service, and is left alone.

Value parameters

tokenName

the field Play reads, as play.filters.csrf.token.name sets it

Attributes

Source
SecurityStandards.scala

Inherited methods

def allExcept(ids: String*): Seq[Rule]

Every rule but the ones with these ids, each of which must be in the set.

Every rule but the ones with these ids, each of which must be in the set.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala
def expectation(rules: Seq[Rule] = ...): Expectation

This set, or any subset of it, as one expectation.

This set, or any subset of it, as one expectation.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala
def only(ids: String*): Seq[Rule]

Only the rules with these ids, each of which must be in the set.

Only the rules with these ids, each of which must be in the set.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala

Concrete fields

lazy val all: Seq[Rule]

Every rule in this set, at its natural severity.

Every rule in this set, at its natural severity.

Attributes

Source
SecurityStandards.scala