live_contacts 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/live_contacts.rb +2 -2
- metadata +2 -2
data/lib/live_contacts.rb
CHANGED
@@ -41,7 +41,7 @@ require 'hmac-sha2'
|
|
41
41
|
# end
|
42
42
|
class LiveContacts
|
43
43
|
|
44
|
-
VERSION = '0.0.
|
44
|
+
VERSION = '0.0.5'
|
45
45
|
|
46
46
|
# Live application attibutes
|
47
47
|
attr_accessor :application_name, :app_id,:secret, :security_algorithm, :return_url, :privacy_policy_url, :application_verifier_required, :timestamp
|
@@ -161,7 +161,7 @@ class LiveContacts
|
|
161
161
|
|
162
162
|
# FIXME copied from Microsoft demo
|
163
163
|
def generate_app_verifier(ip = nil)
|
164
|
-
token = "appid=#{self.app_id}&ts=#{self.timestamp.to_i.to_s || Time.now.to_i.to_s}"
|
164
|
+
token = "appid=#{self.app_id}&ts=#{self.timestamp.to_i.to_s || Time.now.utc.to_i.to_s}"
|
165
165
|
token += "&ip=#{ip}" if ip
|
166
166
|
token += "&sig=#{CGI.escape(Base64.encode64((signToken(token))))}"
|
167
167
|
CGI.escape token
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: live_contacts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenneth Lee
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-09-16 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|