FacebookDigitAuth
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/facebook_digit_auth
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
Why facebook_digit_auth gem?
This gem is used once you are planning for facebook, google and twitter digits authentication together in same application so in case you just need to use same method with different parameters.
Installation
Add this line to your application's Gemfile:
gem 'facebook_digit_auth'
And then execute:
$ bundle
Or install it yourself as:
$ gem install facebook_digit_auth
Usage
Use FacebookDigitAuth::BestAuth.access_data(param1,param2) where as:
params1 => facebook_access_token
'EAAUQ633PzJwBAMyJnK3khk3RwA....'
params2 => 'facebook'
params1 => gmail_access_token
ya29.GluUBFkxp2lf8QN...
params2 => 'google'
- Twitter Digits
params1 => digits_header
{
"auth_token":"743735703008272389-xoZTF1F1ajFn6Tqjcv.....",
"auth_token_secret":"84XDFJHS2gb6yFcMMv9ffhIlC6fl....",
"user_id":"308756..",
"number":"+91...",
"auth_headers": {
"X-Verify-Credentials-Authorization":
"OAuth oauth_timestamp=147733...,
oauth_version=1.0,
oauth_consumer_key=6V...,
oauth_signature=vscqs9...,
oauth_token=743735703008272389-xo...,
oauth_nonce=06027150-145..,
oauth_signature_method=HMAC-SHA1",
"X-Auth-Service-Provider": "https://api.digits.com/1.1/sdk/account.json"
}
}
params2 => 'digit'
Development
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
License
The gem is available as open source under the terms of the MIT License.