Authentication and user administration service

package Amfphp_Examples_Authentication
author Sven Dens

 Methods

constructor

__construct() 

Exceptions

\Exception

function the authentication plugin uses to get accepted roles for each function Here login and logout are not protected, however

_getMethodRoles(String $methodName) : array

Parameters

$methodName

String

Returns

array

sign out function

signOut() 

 Properties

 

$protectedMethods : array

a simple authentication service, used for testing the AmfphpAuthentication plugin

package Tests_TestData_Services
author Ariel Sommeria-klein

 Methods

function the authentication plugin uses to get accepted roles for each function Here login and logout are not protected, however

_getMethodRoles(String $methodName) : array

Parameters

$methodName

String

Returns

array

method that is protected by authentication.

adminMethod() : \<String>

Only 'admin' role is authorized. (see _getMethodRoles)

Returns

\<String>'ok'

test logout function

logout()