- Ruby: Higher version
- Bundler
gem install bigid_auth
# Add to the Gemfile
gem "bigid_auth", "~> 1.0.0"
source "https://rubygems.pkg.github.com/quasar-flash" do
gem "bigid_auth", "1.0.0"
end
Create the config/initializers/bigid.rb file and define:
# Set the env variables
Bigid.configure do |config|
config.username = "email@example.com"
config.password = "xxxxxxxxx"
end
require "bigid_auth"
Bigid::Auth::Authentication.new.login
<Flash::Integration::Response:xxxx
@request=<Flash::Integration::Request:xxx
@method = :post,
@url = "https://accesstoken.bigdatacorp.com.br/Generate",
@params = {},
@headers = {
:"Content-Type" => "application/json",
:Accept => "application/json"
},
@body = "{\"login\":\"email@email.com\",\"password\":\"xxxxxx\",\"expires\":60000}",
@time = 2021-07-21 22:49:57.869382432 UTC>,
@status = 200,
@headers = {
"content-type" => "application/json",
"content-length" => "361",
"connection" => "keep-alive",
"date" => "Wed, 21 Jul 2021 22:49:58 GMT"
},
@body="{\"expiration\":\"Thu, 25 May 2028 22:49:58 GMT\",\"message\":\"Token Generated\",\"success\":true,\"token\":\"xxx\",\"tokenID\":\"xxx\"}\n",
@time=2021-07-21 22:49:58.248277077 UTC>
Please do not directly email any committers with questions or problems. A community is best served when discussions are held in public.
Searching the issues for your problem is also a good idea.
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet;
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it;
- Fork the project;
- Start a feature/bugfix branch;
- Commit and push until you are happy with your contribution;
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.;
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Please see LICENSE for licensing details.
Danilo Carolino, @danilogco / @Quasar-Flash