sinatra_auth_github 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sinatra/auth/github/version.rb +1 -1
- data/lib/sinatra/auth/github.rb +6 -4
- metadata +2 -2
data/lib/sinatra/auth/github.rb
CHANGED
|
@@ -153,10 +153,12 @@ module Sinatra
|
|
|
153
153
|
|
|
154
154
|
manager.failure_app = app.github_options[:failure_app] || BadAuthentication
|
|
155
155
|
|
|
156
|
-
manager
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
manager.scope_defaults :default, :config => {
|
|
157
|
+
:client_id => app.github_options[:client_id] || ENV['GITHUB_CLIENT_ID'],
|
|
158
|
+
:client_secret => app.github_options[:secret] || ENV['GITHUB_CLIENT_SECRET'],
|
|
159
|
+
:scope => app.github_options[:scopes] || '',
|
|
160
|
+
:redirect_uri => app.github_options[:callback_url] || '/auth/github/callback'
|
|
161
|
+
}
|
|
160
162
|
end
|
|
161
163
|
|
|
162
164
|
app.helpers Helpers
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra_auth_github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sinatra
|