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


authenticate(
$auth, $request
)
:
\eZUser | \ezcMvcInternalRedirect
Method 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(
)
:
\eZUser
Returns valid eZPublish user that has been authenticated by {@link self::authenticate()}
Returns
Type | Description |
---|---|
\eZUser |


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