OAuthController::token PHP Method

token() public method

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 ( )
    public function token()
    {
        $this->autoRender = false;
        try {
            $this->OAuth->grantAccessToken();
        } catch (OAuth2ServerException $e) {
            $e->sendHttpResponse();
        }
    }