Skip to content

manishgkasera/aadhaar_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AadhaarAuth

Aadhaar Auth API v.1.6 ruby port

Installation

Add this line to your application's Gemfile:

gem 'aadhaar_auth'

And then execute:

$ bundle

Or install it yourself as:

$ gem install aadhaar_auth

Usage

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

Configuration

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"

API Doc

Aadhaar api documentation is available here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/aadhaar_auth/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Aadhaar Auth API v.1.6 ruby port

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages