warden_oauth 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +5 -0
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/warden_oauth/strategy.rb +1 -1
- data/warden_oauth.gemspec +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
0.1.1 (Feb 1, 2010)
|
|
2
|
+
* Given the warden API was updated, the redirect! method would not work
|
|
3
|
+
without invoking a throw(:warden) [contributor: eoin]
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
* 0.1.0 (Jan 9, 2010) Lets stay up to date with josevalim's work
|
|
2
7
|
* Renaming the warden_oauth/manager.rb to warden_oauth/config_extension.rb,
|
|
3
8
|
given that the Warden::Manager is not the given instance on the
|
data/README.rdoc
CHANGED
|
@@ -54,7 +54,7 @@ In Rails:
|
|
|
54
54
|
There can be 3 different outcomes from this strategy:
|
|
55
55
|
|
|
56
56
|
1. The OAuth credentials are invalid and the FailureApp is called.
|
|
57
|
-
2. The OAuth credentials are valid, but there is no user associated to them. In this case the FailureApp is called, but the env['warden.options'][:oauth][:access_token] will be
|
|
57
|
+
2. The OAuth credentials are valid, but there is no user associated to them. In this case the FailureApp is called, but the env['warden.options'][:oauth][:access_token] will be available.
|
|
58
58
|
3. The OAuth credentials are valid, and the user is authenticated successfuly.
|
|
59
59
|
|
|
60
60
|
Note:
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
|
@@ -44,7 +44,7 @@ module Warden
|
|
|
44
44
|
if params.include?('warden_oauth_provider')
|
|
45
45
|
store_request_token_on_session
|
|
46
46
|
redirect!(request_token.authorize_url)
|
|
47
|
-
|
|
47
|
+
throw(:warden)
|
|
48
48
|
elsif params.include?('oauth_token')
|
|
49
49
|
load_request_token_from_session
|
|
50
50
|
if missing_stored_token?
|
data/warden_oauth.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{warden_oauth}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Roman Gonzalez"]
|
|
12
|
-
s.date = %q{2010-01
|
|
12
|
+
s.date = %q{2010-02-01}
|
|
13
13
|
s.description = %q{
|
|
14
14
|
warden_oauth will help you create oauth authentication strategies using the oauth
|
|
15
15
|
helper method on the Warden::Manager config setup
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: warden_oauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roman Gonzalez
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-01
|
|
12
|
+
date: 2010-02-01 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|