PHP 인터페이스 RESTfulAPI_Authenticator

저자: Thierry Francois @colymba [email protected]
파일 보기 프로젝트 열기: colymba/silverstripe-restfulapi 0 사용 예제들

공개 메소드들

메소드 설명
authenticate ( SS_HTTPRequest $request ) : true | RESTfulAPI_Error Checks if a request to the API is authenticated
getOwner ( SS_HTTPRequest $request ) : null | DataObject Returns the DataObject related to the authenticated request

메소드 상세

authenticate() 공개 메소드

Checks if a request to the API is authenticated
public authenticate ( SS_HTTPRequest $request ) : true | RESTfulAPI_Error
$request SS_HTTPRequest HTTP API request
리턴 true | RESTfulAPI_Error True if token is valid OR RESTfulAPI_Error with details

getOwner() 공개 메소드

Returns the DataObject related to the authenticated request
public getOwner ( SS_HTTPRequest $request ) : null | DataObject
$request SS_HTTPRequest HTTP API request
리턴 null | DataObject null if failed or the DataObject related to the request