kernel/private/rest/classes/auth/auth_style.php
\ezpRestAuthenticationStyleInterface
Package: Default
Parameters
Returns
File containing the ezpRestAuthenticationStyleInterface interface.
- Children
- \ezpRestBasicAuthStyle
- \ezpRestNoAuthStyle
- \ezpRestOauthAuthenticationStyle
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Proprietary Use License v1.0
Methods

authenticate(
$auth, $request
)
:
\eZUser | \ezcMvcInternalRedirectMethod to be run inside the runRequestFilters hook inside MvcTools.
This method should take care of seting up proper redirections to MvcTools
| Name | Type | Description |
|---|---|---|
| $auth | ||
| $request |
| Type | Description |
|---|---|
| \eZUser | \ezcMvcInternalRedirect |

getUser(
)
:
\eZUserReturns valid eZPublish user that has been authenticated by {@link self::authenticate()}
Returns
| Type | Description |
|---|---|
| \eZUser |

setUser(
\eZUser $user
)
:
voidRegisters the user that has been authenticated
Parameters
| Name | Type | Description |
|---|---|---|
| $user | \eZUser |