Authenticator for REST (POST only)
The following authenticator allows Yacs to remotely check password by POSTing a form to a remote page.
To use it :
- copy the attached file to the "users/authenticators/" directory
- in the YACS control panel, setup the following line as remote authenticator : restpost http://www.mydomain.com/authenticate.do username password
The second paramater is the target URL where your login/password can be checked. The last 2 parameters are the field names where username & password are filled in.
The server is expected to return 200 HTTP status code on success. Any other code is a failure.
Comment for developers: to send the POST over a socket, it could have been better to have a new variant 'restpost' managed by the script "services/call.php" (instead of doing its own function to call the server). If this authenticator becomes popular, we could maybe think about adapting this file ?
Files
| restpost.zip v1 2,104 bytes, 58 downloads Edited by Alf83 on May 9 Zoom |
Comments
Links
| authenticate.do - (4 clicks) Edited by Bernard on May 12 |
Rate this page
Posted by Alf83 on May 9, commented by Bernard on May 30, (popular)