PHP 클래스 OAuthController

상속: extends CI_Controller
파일 보기 프로젝트 열기: thomseddon/cakephp-oauth-server 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$components
$helpers
$uses

공개 메소드들

메소드 설명
authorize ( ) Example Authorize Endpoint
beforeFilter ( ) beforeFilter
blackHole ( string $type ) Blackhold callback
login ( ) Example Login Action
token ( ) Example Token Endpoint - this is where clients can retrieve an access token
userinfo ( ) Quick and dirty example implementation for protecetd resource

비공개 메소드들

메소드 설명
validateRequest ( ) Check for any Security blackhole errors

메소드 상세

authorize() 공개 메소드

Send users here first for authorization_code grant mechanism Required params (GET or POST): - response_type = code - client_id - redirect_url
public authorize ( )

beforeFilter() 공개 메소드

beforeFilter
public beforeFilter ( )

blackHole() 공개 메소드

OAuth requests will fail postValidation, so rather than disabling it completely if the request does fail this check we store it in $this->blackHoled and then when handling our forms we can use $this->validateRequest() to check if there were any errors and handle them with an exception. Requests that fail for reasons other than postValidation are handled here immediately using the best guess for if it was a form or OAuth
public blackHole ( string $type )
$type string

login() 공개 메소드

Users must authorize themselves before granting the app authorization Allows login state to be maintained after authorization
public login ( )

token() 공개 메소드

Grant types and parameters: 1) authorization_code - exchange code for token - code - client_id - client_secret 2) refresh_token - exchange refresh_token for token - refresh_token - client_id - client_secret 3) password - exchange raw details for token - username - password - client_id - client_secret
public token ( )

userinfo() 공개 메소드

User accesible via $this->OAuth->user(); Single fields avaliable via $this->OAuth->user("id");
public userinfo ( )

프로퍼티 상세

$components 공개적으로 프로퍼티

public $components

$helpers 공개적으로 프로퍼티

public $helpers

$uses 공개적으로 프로퍼티

public $uses