warden_oauth_provider 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ class CreateOauthTables < ActiveRecord::Migration
|
|
5
5
|
t.string :url
|
6
6
|
t.string :support_url
|
7
7
|
t.string :callback_url
|
8
|
-
t.string :key, :limit =>
|
8
|
+
t.string :key, :limit => 40
|
9
9
|
t.string :secret, :limit => 40
|
10
10
|
t.integer :user_id
|
11
11
|
t.boolean :xauth_enabled, :default => false
|
@@ -18,7 +18,7 @@ class CreateOauthTables < ActiveRecord::Migration
|
|
18
18
|
t.integer :user_id
|
19
19
|
t.string :type, :limit => 20
|
20
20
|
t.integer :client_application_id
|
21
|
-
t.string :token, :limit =>
|
21
|
+
t.string :token, :limit => 40
|
22
22
|
t.string :secret, :limit => 40
|
23
23
|
t.string :callback_url
|
24
24
|
t.string :verifier, :limit => 20
|
@@ -21,7 +21,7 @@ module WardenOauthProvider
|
|
21
21
|
|
22
22
|
# Return a request token for the client application
|
23
23
|
request_token = WardenOauthProvider::Token::Request.create!(:client_application => client_application, :callback_url => oauth_request.oauth_callback)
|
24
|
-
custom! [200, {}, ["oauth_token=#{escape(request_token.token)}&oauth_token_secret=#{escape(request_token.secret)}&oauth_callback_confirmed=true"]]
|
24
|
+
custom! [200, { 'Content-Type' => 'text/html' }, ["oauth_token=#{escape(request_token.token)}&oauth_token_secret=#{escape(request_token.secret)}&oauth_callback_confirmed=true"]]
|
25
25
|
when warden.config.oauth_access_token_path
|
26
26
|
|
27
27
|
if xauth_params? and xauth_mode == 'client_auth'
|
@@ -46,7 +46,7 @@ module WardenOauthProvider
|
|
46
46
|
end
|
47
47
|
|
48
48
|
if access_token
|
49
|
-
custom! [200, {}, ["oauth_token=#{escape(access_token.token)}&oauth_token_secret=#{escape(access_token.secret)}"]]
|
49
|
+
custom! [200, { 'Content-Type' => 'text/html' }, ["oauth_token=#{escape(access_token.token)}&oauth_token_secret=#{escape(access_token.secret)}"]]
|
50
50
|
end
|
51
51
|
else
|
52
52
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warden_oauth_provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Edwin Vlieg
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-09-21 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|