I’ve been asked to provide an example of authenticating to login.farm via API call. What can be simpler than a shell script with curl? The example below is reading username and OTP+Password from standard input and perform a request. You will receive a JSON response with rc set to 0 and errorMsg set to authenticated if working correctly.
read -p "Username: " USERNAME read -p "Password: " PASSWORD APP_ID="firstname.lastname@example.org" APP_SECRET="my_app_secret" curl -X POST -d "USERNAME=$USERNAME&SECRET=$PASSWORD" -H "X-SecurePass-App-ID: $APP_ID" -H "X-SecurePass-App-Secret: $APP_SECRET" https://beta.secure-pass.net/api/v1/users/auth
If you don’t have a login.farm account yet, follow the special link http://bit.ly/loginfarm