Edit the /var/www/c2/yfi_cake/controllers/third_parties_controller.php file to reflect the above choices
//___ Some required values -> Change to suit your setup ____ $key_master = '123456789'; $access_provider= '3rd_sms'; //The name of the Access Provider that this will be made the creator of //Added Security! $request_from = $_SERVER["REMOTE_ADDR"]; //Only allow request to come from specified server if($request_from != '127.0.0.1'){ $this->set('json_return',$this->Json->permFail()); return; } //__________________________________________________________
Call the controller method from your browser with the all the required key/value pairs
Key
Typical Valuekey
123456789voucher_value
1-00-00-00profile
Voucher 10M CAPexpires
2010-07-01precede
smsrealm
Residence Inn
Key
_Typical Value__ _
key
123456789
username
koos
password
koos
realm
Residence Inn
profile
Permanent 250M CAP
cap
hard
completed( {"json" : {"status":"ok"}, "user" : { "user_id":"4b69399f-aa58-4f3b-8015-4858a509ff00", "access_provider":"3rd_sms", "profile_id":"4a62f9c4-25a8-45bc-ab56-1c84a509ff00", "profile_name":"Permanent 250M CAP", "realm_id":"49d09ec6-5480-45d4-a5ae-2b0ea509ff00", "realm_name":"ri", "username":"koosie", "password":"koos", "cap":"hard"} } );