0.0
No commit activity in last 3 years
No release in over 3 years
Aadhaar auth api v1.6: ruby port
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 0.8.6
>= 1.5.2
= 0.2.8
 Project Readme

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