authlogic_wind 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/authlogic_wind.gemspec +2 -2
- data/lib/authlogic_wind/helper.rb +2 -5
- data/lib/authlogic_wind/session.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/authlogic_wind.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{authlogic_wind}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Stuart"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-05}
|
13
13
|
s.description = %q{Authlogic plugin for WIND}
|
14
14
|
s.email = %q{tastyhat@jamesstuart.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -1,10 +1,7 @@
|
|
1
1
|
module AuthlogicWind
|
2
2
|
module Helper
|
3
|
-
def
|
4
|
-
|
5
|
-
link_to (options[:name] || "Login"), url_for(:host => session_class.wind_host, :controller => "login", :protocol => "https", :service => session_class.wind_service, :destination => callback)
|
6
|
-
|
7
|
-
|
3
|
+
def wind_login_url(controller_name)
|
4
|
+
url_for(:controller => controller_name) + "/create?login_with_wind=true"
|
8
5
|
end
|
9
6
|
end
|
10
7
|
end
|
@@ -62,9 +62,9 @@ module AuthlogicWind
|
|
62
62
|
super(&block)
|
63
63
|
end
|
64
64
|
|
65
|
-
|
65
|
+
#TODO: why is this so hacky?
|
66
66
|
def build_callback_url
|
67
|
-
wind_controller.url_for
|
67
|
+
wind_controller.url_for(:controller => wind_controller.controller_name) + "/create"
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -145,8 +145,8 @@ module AuthlogicWind
|
|
145
145
|
|
146
146
|
# Tell our rack callback filter what method the current request is using
|
147
147
|
wind_controller.session[:wind_callback_method] = wind_controller.request.method
|
148
|
-
|
149
|
-
wind_controller.redirect_to
|
148
|
+
|
149
|
+
wind_controller.redirect_to "https://#{wind_host}/login?destination=#{CGI.escapeHTML(build_callback_url)}&service=#{CGI.escapeHTML(wind_service)}"
|
150
150
|
end
|
151
151
|
|
152
152
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic_wind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Stuart
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-05 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|