kernel/private/rest/classes/auth/styles/oauth.php
File containing ezpRestOauthAuthenticationStyle
- 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
\ezpRestOauthAuthenticationStyle
Package: kernel
Parameters
File containing ezpRestOauthAuthenticationStyle
- Parent(s)
- \ezpRestAuthenticationStyleInterface
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties


string
$prefix= ''
inherited
Current prefix for REST requests, to be used in case of internal redirects
Inherited from: \ezpRestAuthenticationStyle::$$prefix
Details
- Type
- string
- Inherited_from
- \ezpRestAuthenticationStyle::$$prefix
Methods


processLoginRequired(
$res, \array(string) $reasons, \array(string=>array(int=>string) $errorMap
=
null
)
:
void
Method extracted from MvcAuthenticationTiein
Checks the status from the authentication run and adds the reasons as variable to the $result.
This method uses the information that is set by the runAuthRequiredFilter() filter to generate an user-readable text of the found $reasons and sets these as the variable ezcAuth_reasons in the $result. You can supply your own mapping from status codes to messages, but a default is provided. Please refer to the Authentication tutorial for information about status codes.
Name | Type | Description |
---|---|---|
$res | ||
$reasons | \array(string) | |
$errorMap | \array(string=>array(int=>string) |


setUser(
$user
)
:
void
inherited
Inherited from:
\ezpRestAuthenticationStyle::setUser()
Parameters
Details
Name | Type | Description |
---|---|---|
$user |