Introduction

Gem Version Dependency Status Build Status Code Climate Coverage Status

A local callback server for oAuth web-flow.

http://sw.cow.tc/clavem

http://rdoc.info/gems/clavem

Usage

clavem allows you to handle a full oAuth authentication flow directly from the console.

Simply instantiate the authorizer and run the authorize method with the URL:

```ruby require “clavem”

Initialize your oAuth access.

authorizer = Clavem::Authorizer.new

Get your authorization URL and append the callback.

url += “?oauth_callback=#authorizerauthorizer.callback_url” authorizer.authorize(url)

if authorizer.status == :succeeded then access_token = authorizer.token

# Go on! else # Authorization denied end ```

Alternatively, you can also specify a timeout and a block to the constructor to customizer the response handling.

See the documentation for more information.

Contributing to clavem

Copyright (C) 2013 and above Shogun (shogun_panda@me.com).

Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.