No commit activity in last 3 years
No release in over 3 years
Official OmniAuth strategy for LayerVault
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

OmniAuth LayerVault

Official OmniAuth strategy for authenticating with LayerVault. You will need to register your application first.

Installation

Install the gem or add it to your Gemfile.

gem install omniauth-layervault

Usage

You will need to configure the strategy as middleware.

Rack

use OmniAuth::Builder do
  provider :layervault, ENV['LAYERVAULT_KEY'], ENV['LAYERVAULT_SECRET']
end

Rails 3

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :layervault, ENV['LAYERVAULT_KEY'], ENV['LAYERVAULT_SECRET']
end

Scopes

LayerVault supports various scopes to limit what actions your application can perform with the API. To specify which scopes to use:

use OmniAuth::Builder do
  provider :layervault, ENV['LAYERVAULT_KEY'], ENV['LAYERVAULT_SECRET'], scope: "user+files"
end

Available Scopes

  • user: default, basic user information
  • files: read access to the user's files and folders
  • write: write access to the user's files and folders

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request