From 163714c9d8ffe643d4ac98fa81881e23c10fa5ec Mon Sep 17 00:00:00 2001 From: "Steven G. Harms" Date: Tue, 3 Apr 2012 12:44:33 -0700 Subject: [PATCH] Updates to work with Windows authentication --- lib/contacts/windows_live.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/contacts/windows_live.rb b/lib/contacts/windows_live.rb index e99088a..63c244c 100644 --- a/lib/contacts/windows_live.rb +++ b/lib/contacts/windows_live.rb @@ -81,11 +81,12 @@ def authentication_url(target=self.return_url, options={}) 'ps' => 'Contacts.Invite', 'ru' => target, 'pl' => privacy_policy_url, - 'app' => app_verifier, + 'appid' => app_verifier, } query['appctx'] = context if context "#{url}?#{params_to_query(query)}" end + end def forced_redirect_url(params) target_origin = params['appctx'] and @@ -133,6 +134,7 @@ def app_verifier 'ts' => Time.now.to_i, }) token << "&sig=#{CGI.escape(Base64.encode64(sign(token)))}" + token.sub!(/^appid/, '') end def sign(token)