SecuredErrorHandler

play.silhouette.api.actions.SecuredErrorHandler

Error handler for secured actions.

Attributes

Graph
Supertypes
trait ErrorHandler
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

override def exceptionHandler(implicit request: RequestHeader): PartialFunction[Throwable, Future[Result]]

Exception handler which chains the exceptions handlers from the sub types.

Exception handler which chains the exceptions handlers from the sub types.

Value parameters

request

The request header.

Attributes

Returns

A partial function which maps an exception to a Play result.

Definition Classes

Inherited methods

def onNotAuthenticated(implicit request: RequestHeader): Future[Result]

Called when a user is not authenticated.

Called when a user is not authenticated.

As defined by RFC 2616, the status code of the response should be 401 Unauthorized.

Value parameters

request

The request header.

Attributes

Returns

The result to send to the client.

Inherited from:
NotAuthenticatedErrorHandler
def onNotAuthorized(implicit request: RequestHeader): Future[Result]

Called when a user is authenticated but not authorized.

Called when a user is authenticated but not authorized.

As defined by RFC 2616, the status code of the response should be 403 Forbidden.

Value parameters

request

The request header.

Attributes

Returns

The result to send to the client.

Inherited from:
NotAuthorizedErrorHandler