The following procedures describe how to add, configure and test authentication for the services handled by the Zend Server Gateway.
This procedure explains how to add HTTP Basic or Digest authentication to an RPC or RESTful API method. For information on adding Token authentication, see Adding Token Authentication below.
|
|
|
To add HTTP Basic/Digest authentication:
|
Note: Once added, all defined services in the Gateway will automatically require authentication. To change this, select a service and un-select the Requires authentication check-box. |
This procedure explains how to add Token authentication to an RPC or RESTful API method. For information on adding HTTP Basic/Digest authentication, see Adding HTTP Basic/Digest Authentication above.
|
|
|
To add Token authentication:
|
Note: Once added, all defined services in the Gateway will automatically require authentication. To change this, select a service , and in the Edit Service dialog un-select the Requires authentication check-box. |
This procedure explains how to test authentication for an existing RPC or RESTful API method.
Important:
Testing authentication can only be performed if you have already successfully deployed the application. In the PHP Explorer, open the 'deployment.xml' file and in the Testing area, click Deploy a PHP Application. For more information on deploying applications, see Working with Deployment.
|
|
|
To test authentication:
|
Important! If you are using Windows, you will need to un-comment the following lines in the '.htaccess' file, in the server-side project's 'public' folder, to authenticate your requests: |
|
|
|
|
Related Links: Configuring the Zend Server Gateway Adding and Testing a New Method Route |
|
|
©1999-2013 Zend Technologies LTD. All rights reserved.