zendesk_remote_authentication 0.6.0 → 0.7.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/VERSION +1 -1
- data/lib/zendesk_remote_authentication.rb +2 -1
- data/zendesk_remote_authentication.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.7.0
|
|
@@ -26,11 +26,12 @@ module RemoteAuthenticationHelper
|
|
|
26
26
|
def zendesk_remote_authentication_url(params)
|
|
27
27
|
raise ArgumentError.new("You must provide name and email address") unless (params[:name] && params[:email])
|
|
28
28
|
|
|
29
|
+
token = Zendesk::RemoteAuthentication.token
|
|
29
30
|
timestamp = params[:timestamp] || Time.now.to_i.to_s
|
|
30
31
|
name = params[:name]
|
|
31
32
|
email = params[:email].force_utf8
|
|
32
33
|
external_id = params[:external_id]
|
|
33
|
-
hash = Digest::MD5.hexdigest(name + email + external_id +
|
|
34
|
+
hash = Digest::MD5.hexdigest(name + email + external_id + token + now)
|
|
34
35
|
back = params[:return_to]
|
|
35
36
|
|
|
36
37
|
auth_params = [
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zendesk_remote_authentication
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 3
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
8
|
+
- 7
|
|
9
9
|
- 0
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.7.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- James Wachira
|