sinatra_auth_oauthed 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config.ru +8 -0
- data/lib/sinatra/auth/oauthed.rb +0 -8
- data/lib/sinatra/auth/oauthed/version.rb +1 -1
- data/spec/app.rb +2 -0
- data/spec/spec_helper.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12cb1c30111e1ea83a446c368bf3b327c7bb01df
|
4
|
+
data.tar.gz: ea6daab3796380ef74ecef87d245ada2250ea529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28d6647fccd5aeec5778e1eb60dbd173084a7e4ead869bef372d0d94058e944937a25c34916d286d2c35633ee3982161daa1eedbe5324a2967b1902e1e7cf0df
|
7
|
+
data.tar.gz: f2291623bf9cbad92b2c14cd50f6b7586d4c2cc392c856f3b13d5a56f1a7cf8f18c80b4f5e25149b5a06648b6745382abdca30a7b36e2b6f7737c13a5b491e72
|
data/config.ru
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
ENV['APPLICATION_CLIENT_ID'] = 'dddc188f84e348ddae69f17dd63e758ded4cc24abed435a53db9525db2cd7af45f0'
|
2
|
+
ENV['APPLICATION_CLIENT_SECRET'] = 'e35b8e02901a3ca1b5b1e0c4cf3e1e6dbd1855de4684bd95175721428816ae96'
|
3
|
+
ENV['APPLICATION_SCOPES_REQUESTED'] = 'public'
|
4
|
+
ENV['OAUTH_BASE_URL'] = 'http://localhost:3000'
|
5
|
+
ENV['SESSION_KEY'] = 'Set a key'
|
6
|
+
ENV['USER_ATTRIBUTES'] = 'id full_name email'
|
7
|
+
ENV['RACK_ENV'] = 'test'
|
8
|
+
|
1
9
|
ENV['RACK_ENV'] ||= 'development'
|
2
10
|
require 'bundler'
|
3
11
|
require 'bundler/setup'
|
data/lib/sinatra/auth/oauthed.rb
CHANGED
@@ -85,14 +85,6 @@ module Sinatra
|
|
85
85
|
manager[:oauthed_callback_url] = '/auth/oauthed/callback'
|
86
86
|
end
|
87
87
|
|
88
|
-
# Sign cookie sessions in with AS::Verifier
|
89
|
-
ENV['WARDEN_OAUTHED_VERIFIER_SECRET'] ||= ENV['OAUTHED_VERIFIER_SECRET']
|
90
|
-
|
91
|
-
unless ENV['WARDEN_OAUTHED_VERIFIER_SECRET']
|
92
|
-
warn 'No WARDEN_OAUTHED_VERIFIER_SECRET environmental variable found.'
|
93
|
-
warn 'Your sessions are likely being stored insecurely.'
|
94
|
-
end
|
95
|
-
|
96
88
|
app.helpers Helpers
|
97
89
|
|
98
90
|
app.get '/auth/oauthed/callback' do
|
data/spec/app.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -2,7 +2,7 @@ ENV['APPLICATION_CLIENT_ID'] = 'dddc188f84e348ddae69f17dd63e758ded4cc24abed435a5
|
|
2
2
|
ENV['APPLICATION_CLIENT_SECRET'] = 'e35b8e02901a3ca1b5b1e0c4cf3e1e6dbd1855de4684bd95175721428816ae96'
|
3
3
|
ENV['APPLICATION_SCOPES_REQUESTED'] = 'public'
|
4
4
|
ENV['OAUTH_BASE_URL'] = 'http://localhost:3000'
|
5
|
-
ENV['
|
5
|
+
ENV['SESSION_KEY'] = 'Set a key'
|
6
6
|
ENV['USER_ATTRIBUTES'] = 'id full_name email'
|
7
7
|
ENV['RACK_ENV'] = 'test'
|
8
8
|
|
@@ -18,3 +18,4 @@ require 'app'
|
|
18
18
|
RSpec.configure do |conf|
|
19
19
|
conf.include Rack::Test::Methods
|
20
20
|
end
|
21
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_auth_oauthed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Herr
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|