Skip to content

Commit

Permalink
[SCP-3232] Modified SSO login test script to allow the secret to be p…
Browse files Browse the repository at this point in the history
…rovided.
  • Loading branch information
daniel-siegmann-aol committed Aug 23, 2013
1 parent 41a281a commit e73fb35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/ssologin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def login(baseUrl)
@server = 'localhost'
@port = '8080'
@accountId = 100938
@secret = ""

optparse = OptionParser.new do | opts |
opts.banner = "Usage: #{File.basename($0)}"
Expand All @@ -59,6 +60,15 @@ def login(baseUrl)
opts.on("-a", "--account accountId", "CloudFlare account ID") do | i |
@accountId = i
end

opts.on("-k", "--secret key", "CloudFlare App secret key") do | i |
secret = i
end
end

if (@secret == "")
puts "You must specify the secret key with -k"
exit 1
end

baseUrl = "http://localhost:8080/cf/accounts/#{@accountId}/login"
Expand Down

0 comments on commit e73fb35

Please sign in to comment.