Sha256: 539e8f488daf634112e5f660bd2d5137fdc8c6581cfd852d08851acd39b6f7e6
Contents?: true
Size: 2 KB
Versions: 6
Compression:
Stored size: 2 KB
Contents
# Introduction [![Build Status](https://secure.travis-ci.org/ShogunPanda/clavem.png?branch=master)](https://travis-ci.org/ShogunPanda/clavem) [![Dependency Status](https://gemnasium.com/ShogunPanda/clavem.png?travis)](https://gemnasium.com/ShogunPanda/clavem) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/ShogunPanda/clavem) 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: ``` require "clavem" # Initalize your oAuth access. authorizer = Clavem::Authorizer.new # Get your authorization URL and append the callback. url += "?oauth_callback=#{authorizer.callback_url}" authorizer.authorize(url) if authorizer.status == :succeded 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](http://rdoc.info/gems/clavem) for more information. ## Contributing to clavem * 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. ## Copyright 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.
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
clavem-1.1.1 | README.md |
clavem-1.1.0 | README.md |
clavem-1.0.3 | README.md |
clavem-1.0.2 | README.md |
clavem-1.0.1 | README.md |
clavem-1.0.0 | README.md |