PHP 클래스 eZ\Publish\Core\REST\Server\Controller\SessionController

상속: extends eZ\Publish\Core\REST\Server\Controller
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( eZ\Publish\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface $authenticator, $tokenIntention, Symfony\Component\Security\Csrf\CsrfTokenManager $csrfTokenManager = null, Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface $csrfTokenStorage = null )
createSessionAction ( Request $request ) : UserSession | eZ\Publish\Core\REST\Server\Values\Conflict Creates a new session based on the credentials provided as POST parameters.
deleteSessionAction ( string $sessionId, Request $request ) : DeletedUserSession Deletes given session.
refreshSessionAction ( string $sessionId, Request $request ) : UserSession Refresh given session.

비공개 메소드들

메소드 설명
checkCsrfToken ( Request $request ) Checks the presence / validity of the CSRF token.
getCsrfToken ( ) : string Returns the csrf token for REST. The token is generated if it doesn't exist.
hasStoredCsrfToken ( ) : boolean Tests if a CSRF token is stored.

메소드 상세

__construct() 공개 메소드

public __construct ( eZ\Publish\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface $authenticator, $tokenIntention, Symfony\Component\Security\Csrf\CsrfTokenManager $csrfTokenManager = null, Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface $csrfTokenStorage = null )
$authenticator eZ\Publish\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
$csrfTokenManager Symfony\Component\Security\Csrf\CsrfTokenManager
$csrfTokenStorage Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface

createSessionAction() 공개 메소드

Creates a new session based on the credentials provided as POST parameters.
public createSessionAction ( Request $request ) : UserSession | eZ\Publish\Core\REST\Server\Values\Conflict
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserSession | eZ\Publish\Core\REST\Server\Values\Conflict

deleteSessionAction() 공개 메소드

Deletes given session.
public deleteSessionAction ( string $sessionId, Request $request ) : DeletedUserSession
$sessionId string
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\DeletedUserSession

refreshSessionAction() 공개 메소드

Refresh given session.
public refreshSessionAction ( string $sessionId, Request $request ) : UserSession
$sessionId string
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserSession