HumHub Documentation (unofficial)

AuthInterface

AuthInterface is the interface that should be implemented by auth method classes.

Tags
author

Qiang Xue qiang.xue@gmail.com

since
2.0

Table of Contents

Methods

authenticate()  : IdentityInterface|null
Authenticates the current user.
challenge()  : mixed
Generates challenges upon authentication failure.
handleFailure()  : mixed
Handles authentication failure.

Methods

challenge()

Generates challenges upon authentication failure.

public challenge(Response $response) : mixed

For example, some appropriate HTTP headers may be generated.

Parameters
$response : Response

handleFailure()

Handles authentication failure.

public handleFailure(Response $response) : mixed

The implementation should normally throw UnauthorizedHttpException to indicate authentication failure.

Parameters
$response : Response
Tags
throws
UnauthorizedHttpException

        
On this page

Search results