Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
HttpBasicAuthStrategy Class Reference
Inheritance diagram for HttpBasicAuthStrategy:
Strategy

Public Member Functions

 __construct (Request $request, $authenticator)
 
 check ()
 
 user ()
 
 addChallenge (Response $response)
 

Protected Attributes

 $authenticator
 
 $request
 
 $user
 

Constructor & Destructor Documentation

__construct ( Request  $request,
  $authenticator 
)
Parameters
Request$request
callable$authenticator

Member Function Documentation

addChallenge ( Response  $response)

Validate a user's credentials.

Parameters
Response$responsethe current response
Returns
Response the new response containing the challenge

Implements Strategy.

check ( )

Determine if the current user is authenticated.

Returns
bool

Implements Strategy.

user ( )

Get the currently authenticated user.

Returns
?

Implements Strategy.

Field Documentation

$authenticator
protected
$request
protected
$user
protected

The documentation for this class was generated from the following file: