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 CHANGED
@@ -1 +1 @@
1
- 0.6.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 + Token + now)
34
+ hash = Digest::MD5.hexdigest(name + email + external_id + token + now)
34
35
  back = params[:return_to]
35
36
 
36
37
  auth_params = [
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zendesk_remote_authentication}
8
- s.version = "0.6.0"
8
+ s.version = "0.7.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 Wachira"]
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: 7
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 6
8
+ - 7
9
9
  - 0
10
- version: 0.6.0
10
+ version: 0.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Wachira