Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

make kensa send the 'app' parameter during sso #52

Merged
merged 1 commit into from
Aug 16, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/heroku/kensa/sso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def query_params
{ 'token' => @token,
'timestamp' => @timestamp.to_s,
'nav-data' => sample_nav_data,
'email' => 'username@example.com'
'email' => 'username@example.com',
'app' => 'myapp'
}.tap do |params|
params.merge!('id' => @id) if self.POST?
end
Expand Down
1 change: 1 addition & 0 deletions test/sso_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def builds_full_url(env)
assert_equal 'b6010f6fbb850887a396c2bc0ab23974003008f6', data['token'].first
assert_equal '1262304000', data['timestamp'].first
assert_equal 'username@example.com', data['email'].first
assert_equal 'myapp', data['app'].first
end

context 'sso' do
Expand Down