Filters
com.gu.googleauth.Filters
trait Filters extends UserIdentifier, Logging
Attributes
- Graph
-
- Supertypes
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
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
Attributes
- Inherited from:
- Logging
In this article