Aadhaar Auth API v.1.6 ruby port
Add this line to your application's Gemfile:
gem 'aadhaar_auth'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aadhaar_auth
c = AadhaarAuth::Client.new(:aadhaar_no => '999999990019', :name => 'Shivshankar Choudhury')
c.valid? #true/false
there is also a verbose mode which prints the request/response on STDOUT
c.verbose = true
By default test credentials are used, if you want to deploy it to production, use the confugurator as below
options available
- api_version
- asa_licence_key
- public_certificate_path
- digital_signature_path
- digital_signature_pwd
- ac
- lk
- sa
- tid
- udc
set them as
AadhaarAuth::Config.asa_licence_key = "hfjsfdGJgGJghJGHJGJGHGFBJIG"
AadhaarAuth::Config.public_certificate_path = "/tmp/Auth_Staging.cer"
AadhaarAuth::Config.digital_signature_path = "/tmp/public-may2012.p12"
Aadhaar api documentation is available here
- Fork it ( https://github.com/[my-github-username]/aadhaar_auth/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request