This module adds HTTP basic authentication to the Services module.It allow access to only those users that have permission set for this module.
you can assign administer secure_services permission for the roles who should be able to access/validate API requests.
Unpack the module and place the secure_services folder in your site's
module directory (e.g. sites/all/modules).
Set permission for the role that you want to access services.