kernel/private/rest/classes/auth/styles/oauth.php

Show: inherited
Table of Contents

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

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

Propertyprotectedstring  $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  
Propertyprotected\eZuser  $user= ''
inherited

Authenticated user

Inherited from: \ezpRestAuthenticationStyle::$$user
Details
Type
\eZuser
Inherited_from
\ezpRestAuthenticationStyle::$$user  

Methods

methodpublic__construct( ) : void
inherited

Inherited from: \ezpRestAuthenticationStyle::__construct()
methodpublicauthenticate(  $auth,  $request ) : void

Parameters
Name Type Description
$auth
$request
methodpublicgetUser( ) : void
inherited

Inherited from: \ezpRestAuthenticationStyle::getUser()
methodpublicprocessLoginRequired(  $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.

Parameters
Name Type Description
$res
$reasons \array(string)
$errorMap \array(string=>array(int=>string)
methodpublicsetUser(  $user ) : void
inherited

Inherited from: \ezpRestAuthenticationStyle::setUser()
Parameters
Name Type Description
$user
Details
See
\ezpRestAuthenticationStyleInterface::setUser()  
methodpublicsetup(  $request ) : void

Parameters
Name Type Description
$request
Documentation was generated by DocBlox 0.18.1.