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 in

    signIn(string $username, string $password) : boolean

### Parameters

#### $username

`string`

#### $password

`string`

### Returns

`boolean`

## 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 login function

    login(String $userId, String $password) : String

### Parameters

#### $userId

`String`

#### $password

`String`

### Returns

`String`

## test logout function

    logout()