Sha256: 5174aa593aab541593d6d23fabceb578c8dc8a6c7d3f4f3b09bb1bc159976145

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

# OmniAuth Box.net Strategy

This gem provides a dead simple way to authenticate to Box.net using OmniAuth.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'omniauth-box'
```

## Usage

First, you will need to [register an application](http://www.box.com/developers/services/new_service_terms) with Box.net and obtain an API key. Once you do that, you can use it like so:

```ruby
use OmniAuth::Builder do
  provider :box, 'yourapikey'
end
```

## Auth Hash Schema

The following information is provided back to you for this provider:

```ruby
{
  uid: '12345',
  info: {
    nickname: 'login', # may be email
    email: 'someone@example.com'
  },
  credentials: {
    token: 'thetoken' # can be used to auth to the API
  },
  extra: { raw_info: raw_api_response }
}
```

## Contributing

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-box-0.0.1 README.md