This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

use valid scopes for oauth

  • Loading branch information...
atmos committed Oct 27, 2011
1 parent 9c46c77 commit fc522b6c6cd0c96864c13306e05b6ec0881e55ad
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/sinatra/auth/github.rb
  2. +1 −1 sinatra_auth_github.gemspec
@@ -5,7 +5,7 @@
module Sinatra
module Auth
module Github
- VERSION = "0.1.2"
+ VERSION = "0.1.5"
# Simple way to serve an image early in the stack and not get blocked by
# application level before filters
@@ -164,7 +164,7 @@ def self.registered(app)
manager.failure_app = app.github_options[:failure_app] || BadAuthentication
manager[:github_secret] = app.github_options[:secret] || ENV['GITHUB_CLIENT_SECRET']
- manager[:github_scopes] = app.github_options[:scopes] || 'email,offline_access'
+ manager[:github_scopes] = app.github_options[:scopes] || ''
manager[:github_client_id] = app.github_options[:client_id] || ENV['GITHUB_CLIENT_ID']
manager[:github_callback_url] = app.github_options[:callback_url] || '/auth/github/callback'
end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "sinatra_auth_github"
- s.version = "0.1.4"
+ s.version = "0.1.5"
s.platform = Gem::Platform::RUBY
s.authors = ["Corey Donohoe"]
s.email = ["atmos@atmos.org"]

0 comments on commit fc522b6

Please sign in to comment.