vidibus-user 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -30,7 +30,7 @@ Warden::Strategies.add(:connector) do
30
30
 
31
31
  # Returns the current realm
32
32
  def realm
33
- @realm ||= env[:realm] || raise("No realm available!")
33
+ @realm ||= params["realm"] || env[:realm] || raise("No realm available!")
34
34
  end
35
35
 
36
36
  # Returns OAuth client
@@ -40,8 +40,8 @@ Warden::Strategies.add(:connector) do
40
40
 
41
41
  def authenticate!
42
42
  code = params["code"]
43
- redirect_url = "#{host}/authenticate_user"
44
- args = { :redirect_url => redirect_url }
43
+ redirect_url = "#{host}/authenticate_user?realm=#{realm}"
44
+ args = {:redirect_url => redirect_url}
45
45
 
46
46
  # Fetch code first
47
47
  return redirect!(client.web_server.authorize_url(args)) unless code
data/vidibus-user.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vidibus-user}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Pankratz"]
12
- s.date = %q{2011-02-24}
12
+ s.date = %q{2011-03-03}
13
13
  s.description = %q{Provides single sign-on and a local user model.}
14
14
  s.email = %q{andre@vidibus.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-user
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Pankratz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-24 00:00:00 +01:00
18
+ date: 2011-03-03 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency