Sha256: dce5076c52759b453e26587588b248e0eae98366ac6b0f6563b591c3cd488c06

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

OmniAuth YouTube
================

This is an [OmniAuth 1.0](https://github.com/intridea/omniauth) strategy for authenticating to YouTube.

Get a YouTube API key on their [developer dashboard](http://code.google.com/apis/youtube/dashboard/)

An example Rails application using omniauth is also available:
<https://github.com/jamiew/omniauth-rails-app>


Usage
-----

In a rack application:

```ruby
use OmniAuth::Builder do
  provider :youtube, ENV['YOUTUBE_KEY'], ENV['YOUTUBE_SECRET']
end

For Rails, put this in `config/initializers/omniauth.rb`:

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :youtube, ENV['YOUTUBE_KEY'], ENV['YOUTUBE_SECRET']
end
```


License
-------

Copyright (c) 2011 Jamie Wilkinson

This source code released under an MIT license.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-youtube-1.0 README.md