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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 353b360d0464204e9c6dff56f78882898bdcc30d
4
- data.tar.gz: ba37ca3332426e2afe16f4dc8f86e15a98a7a411
3
+ metadata.gz: 12cb1c30111e1ea83a446c368bf3b327c7bb01df
4
+ data.tar.gz: ea6daab3796380ef74ecef87d245ada2250ea529
5
5
  SHA512:
6
- metadata.gz: cd95a837e02574e1ec23a2d9996772a6226ca5e9a673e779356d4cc51c653a054e0eb26a2380ac8e84b196f721896add1dacba15fdea4b577db30733c8909e52
7
- data.tar.gz: b433beb0a42b3edbe59d4663d99e7ba3b06459d097b940a20ee3243c12905eb51dd09488ca987f9dd280e0470b24398e95bd884f0ac23cdbc4b38b6b1b105482
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'
@@ -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
@@ -1,7 +1,7 @@
1
1
  module Sinatra
2
2
  module Auth
3
3
  module Oauthed
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,8 @@
1
+
1
2
  module Example
2
3
  class App < Sinatra::Base
3
4
  enable :sessions
5
+ set :session_secret, ENV['SESSION_KEY']
4
6
  register Sinatra::Auth::Oauthed
5
7
 
6
8
  get '/logout' do
@@ -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['OAUTHED_VERIFIER_SECRET'] = 'MyStu9GTLJX7vhF0LKQ9dQ-cjjTwMFWTkHV6VqE7ipBpwdwwamVdJx1AXkCuOu4g'
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.1
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-14 00:00:00.000000000 Z
12
+ date: 2015-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra