CakePHP Cookbook 3.x
Method Options Authentication Using Basic Authentication Using Digest Authentication OAuth 1 Authentication OAuth 2 Authentication Proxy Authentication Creating Scoped Clients Setting and Managing Cookies from the ground up. It has a simpler/easier to use API, support for new authentication systems like OAuth, and file uploads. It uses PHP’s stream APIs so there is no requirement for cURL. See the Http Client such as OAuth2, you can set the Authorization header directly: public function testOauthToken() { $this->configRequest([ 'headers' => [ 'authorization' => 'Bearer: oauth-token'0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
Method Options Authentication Using Basic Authentication Using Digest Authentication OAuth 1 Authentication OAuth 2 Authentication Proxy Authentication Creating Scoped Clients Setting and Managing Cookies such as OAuth2, you can set the Authorization header directly: public function testOauthToken(): void { $this->configRequest([ 'headers' => [ 'authorization' => 'Bearer: oauth-token' automatically chosen based on the server challenge. OAuth 1 Authentication Many modern web-services require OAuth authentication to access their APIs. The included OAuth authentication assumes that you already have0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xMethod Options Authentication Using Basic Authentication Using Digest Authentication OAuth 1 Authentication OAuth 2 Authentication Proxy Authentication Creating Scoped Clients Setting and Managing Cookies automatically chosen based on the server challenge. OAuth 1 Authentication Many modern web-services require OAuth authentication to access their APIs. The included OAuth authentication assumes that you already have 'type' => 'oauth', 'consumerKey' => 'bigkey', 'consumerSecret' => 'secret', 'token' => '...', 'tokenSecret' => '...', 'realm' => 'tickets', ], ]); OAuth 2 Authentication0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
the ground up. It has a simpler/easier to use API, support for new authen- tication systems like OAuth, and file uploads. It uses PHP’s stream APIs so there is no requirement for cURL. See the Http Client authentication, such as OAuth2, you can set the Authorization header directly: public function testOauthToken() { $this->configRequest([ 'headers' => [ 'authorization' => 'Bearer: oauth-token' ] ]); $t CakePHP Cookbook Documentation, Release 3.10 OAuth 1 Authentication Many modern web-services require OAuth authentication to access their APIs. The included OAuth authentication assumes that you already have0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
authentication, such as OAuth2, you can set the Authorization header directly: public function testOauthToken(): void { $this->configRequest([ 'headers' => [ 'authorization' => 'Bearer: oauth-token' ] ]); automatically chosen based on the server challenge. OAuth 1 Authentication Many modern web-services require OAuth authentication to access their APIs. The included OAuth authentication assumes that you already have new Client(); $response = $http->get('http://example.com/profile/1', [], [ 'auth' => [ 'type' => 'oauth', 'consumerKey' => 'bigkey', 'consumerSecret' => 'secret', 'token' => '...', 'tokenSecret' => '..0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xautomatically chosen based on the server challenge. OAuth 1 Authentication Many modern web-services require OAuth authentication to access their APIs. The included OAuth authentication assumes that you already have new Client(); $response = $http->get('http://example.com/profile/1', [], [ 'auth' => [ 'type' => 'oauth', 'consumerKey' => 'bigkey', 'consumerSecret' => 'secret', 'token' => '...', 'tokenSecret' => '.. 'tickets', ], ]); Authentication 769 CakePHP Cookbook Documentation, Release 5.x OAuth 2 Authentication Because OAuth2 is often a single header, there is not a specialized authentication adapter. Instead0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 2.x
methods out of the box. You can also create custom authentication objects to support protocols like OAuth. To use any authentication system you need to configure the HttpSocket instance: App::uses('HttpSocket'0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
methods out of the box. You can also create custom authentication objects to support protocols like OAuth. To use any authentication system you need to configure the HttpSocket instance: App::uses('HttpSocket'0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













