sinatra-browserid 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/example/app.rb +2 -0
  2. data/lib/sinatra/browserid.rb +2 -1
  3. metadata +6 -22
@@ -2,6 +2,7 @@
2
2
 
3
3
  $: << File.join(File.dirname(__FILE__), "..", "lib")
4
4
 
5
+ require "rubygems"
5
6
  require "sinatra/base"
6
7
  require "sinatra/browserid"
7
8
 
@@ -9,6 +10,7 @@ class TestApp < Sinatra::Base
9
10
  register Sinatra::BrowserID
10
11
 
11
12
  set :sessions, true
13
+ set :browserid_url, "https://diresworb.org"
12
14
 
13
15
  get '/' do
14
16
  erb :index
@@ -78,7 +78,8 @@ module Sinatra
78
78
  app.post '/_browserid_assert' do
79
79
  # TODO(petef): do verification locally, without a callback
80
80
  audience = request.host_with_port
81
- http = Net::HTTP.new("browserid.org", 443)
81
+ bid_uri = URI.parse(settings.browserid_url)
82
+ http = Net::HTTP.new(bid_uri.host, bid_uri.port)
82
83
  http.use_ssl = true
83
84
  data = {
84
85
  "assertion" => params[:assertion],
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-browserid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pete Fritchman
@@ -14,8 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-10-21 00:00:00 -04:00
18
- default_executable:
17
+ date: 2011-12-02 00:00:00 Z
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency
21
20
  name: sinatra
@@ -33,20 +32,6 @@ dependencies:
33
32
  version: 1.1.0
34
33
  type: :runtime
35
34
  version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: json
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
48
- type: :runtime
49
- version_requirements: *id002
50
35
  description:
51
36
  email:
52
37
  - petef@databits.net
@@ -62,7 +47,6 @@ files:
62
47
  - example/app.rb
63
48
  - example/config.ru
64
49
  - example/views/index.erb
65
- has_rdoc: true
66
50
  homepage: https://github.com/fetep/sinatra-browserid
67
51
  licenses: []
68
52
 
@@ -92,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
76
  requirements: []
93
77
 
94
78
  rubyforge_project:
95
- rubygems_version: 1.3.7
79
+ rubygems_version: 1.8.11
96
80
  signing_key:
97
81
  specification_version: 3
98
82
  summary: Sinatra extension for user authentication with browserid.org