Filters

com.gu.googleauth.Filters
trait Filters extends UserIdentifier, Logging

Attributes

Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Concrete methods

def requireGroup[R <: ([_] =>> RequestHeader)](includedGroups: Set[String], notInValidGroup: RequestHeader => Result)(implicit ec: ExecutionContext): ActionFilter[R]

This action ensures that the user is authenticated and has membership of at least one of the specified groups. If you want to ensure membership of multiple groups, you can chain multiple requireGroup() filters together.

This action ensures that the user is authenticated and has membership of at least one of the specified groups. If you want to ensure membership of multiple groups, you can chain multiple requireGroup() filters together.

Value parameters

includedGroups

if the user is a member of any one of these groups, they are allowed through

Attributes

Inherited methods

The configuration to use for these actions

The configuration to use for these actions

Attributes

Inherited from:
UserIdentifier
def userIdentity(request: RequestHeader): Option[UserIdentity]

Helper method that deals with getting a user identity from a request and establishing validity

Helper method that deals with getting a user identity from a request and establishing validity

Attributes

Inherited from:
UserIdentifier

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging