New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

london_cab-auth

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

london_cab-auth

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

LondonCab

Gem Version Build Status Code Climate

An authentication extension for london_cab.

Installation

Add this line to your application's Gemfile:

gem 'london_cab-auth'

And then execute:

$ bundle

Or install it yourself as:

$ gem install london_cab-auth

Usage

API Token

To acquire an API token, use the same credentials for your corporate London Cab account.

Configuration

LondonCab::Auth.configure do |config|
  config.username = ENV['LONDON_CAB_API_AUTH_USERNAME']
  config.password = ENV['LONDON_CAB_API_AUTH_PASSWORD']
end

This sets a global default username and password. You can also pass a username and password to the initializer of LondonCab::Auth::Client.

client = LondonCab::Auth::Client.new(username: ENV['LONDON_CAB_API_AUTH_USERNAME'],
                                     password: ENV['LONDON_CAB_API_AUTH_PASSWORD'])

The instance username and password will be used over the global default.

The following globals settings are supported via LondonCab::Auth.configure.

settingdescription
usernameLondon Cab API Auth username.
passwordLondon Cab API Auth password.
loggerAn optional logger.
Default: Logger.new(STDOUT) at Logger::WARN level.

Client

The London Cab Auth allows you to generate tokens that can be used with the London Cab API client.

Configuration
settingdescription
endpointLondon Cab Auth endpoint.
Default: http://65.182.108.16:22710
user_agentUser-agent.
Default: LondonCab::Auth/VERSION.
usernameRequired. London Cab API Auth username.
passwordRequired. London Cab API Auth password.
loggerOptional. Logger instance that logs HTTP requests.

Documentation

Auth

You can use the client to make requests related to auth.

Generate Auth

Request rides with #auth.

client.auth

History

The structure of this gem is based on slack-ruby-client.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/RaMin0/london_cab-auth.

FAQs

Package last updated on 03 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc