devise_browserid_authenticatable 1.1.2 → 1.2.0
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.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# 1.2.0
|
2
|
+
|
3
|
+
* Fixed an indentation typo in the readme - thanks to @pjambet
|
4
|
+
* ```browserid_js_tag``` can now take params - thanks to @sunny
|
5
|
+
* Don't try to ```skip_confirmation!``` if Devise's confirmable module isn't used - thanks to @sunny
|
6
|
+
* New URLs for persona.org - thanks to @sunny
|
7
|
+
|
8
|
+
# 1.1.2
|
9
|
+
|
10
|
+
* Prevent devise from sending the confirmation mail
|
11
|
+
|
12
|
+
# 1.1.0
|
13
|
+
|
14
|
+
* Added documentation
|
15
|
+
|
16
|
+
# 1.0.0
|
17
|
+
|
18
|
+
* The initial release
|
data/README.md
CHANGED
@@ -57,7 +57,7 @@ like this (you will find an explanation below the code):
|
|
57
57
|
url: '/users/sign_in',
|
58
58
|
type: "POST",
|
59
59
|
dataType: "json",
|
60
|
-
|
60
|
+
cache: false,
|
61
61
|
data: {
|
62
62
|
"assertion": assertion
|
63
63
|
},
|
@@ -76,4 +76,4 @@ for information about how to add terms of service and privacy policies if you wa
|
|
76
76
|
function posts the assertion asynchronous to the Rails application (the sign_in-path) to check it. When the
|
77
77
|
check was successful, the script will redirect the user to your application root path.
|
78
78
|
|
79
|
-
Feel free to add error handling.
|
79
|
+
Feel free to add error handling.
|
@@ -25,7 +25,7 @@ class Devise::Strategies::BrowseridAuthenticatable < Devise::Strategies::Authent
|
|
25
25
|
unless u
|
26
26
|
password = Devise.friendly_token
|
27
27
|
u = mapping.to.new(:email => @asserted["email"], :password => password, :password_confirmation => password)
|
28
|
-
u.skip_confirmation!
|
28
|
+
u.skip_confirmation! if u.respond_to?(:skip_confirmation!)
|
29
29
|
u.save!
|
30
30
|
end
|
31
31
|
|
@@ -34,9 +34,9 @@ class Devise::Strategies::BrowseridAuthenticatable < Devise::Strategies::Authent
|
|
34
34
|
|
35
35
|
def self.browserid_url
|
36
36
|
if Rails.env.production?
|
37
|
-
"
|
37
|
+
"login.persona.org"
|
38
38
|
else
|
39
|
-
"dev.
|
39
|
+
"login.dev.anosrep.org"
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module BrowserId
|
2
2
|
module ViewHelpers
|
3
|
-
def browserid_js_tag
|
4
|
-
javascript_include_tag(
|
3
|
+
def browserid_js_tag(params = {})
|
4
|
+
javascript_include_tag(browserid_js_include_url, params)
|
5
5
|
end
|
6
6
|
|
7
|
-
def
|
7
|
+
def browserid_js_include_url
|
8
8
|
"https://#{Devise::Strategies::BrowseridAuthenticatable.browserid_url}/include.js"
|
9
9
|
end
|
10
10
|
end
|
11
|
-
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_browserid_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
@@ -35,6 +35,7 @@ extensions: []
|
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
37
|
- .gitignore
|
38
|
+
- CHANGELOG.md
|
38
39
|
- LICENSE
|
39
40
|
- README.md
|
40
41
|
- devise_browserid_authenticatable.gemspec
|