File: mkassoc

package info (click to toggle)
libopenid-ruby 2.1.8debian-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,300 kB
  • ctags: 3,346
  • sloc: ruby: 17,403; xml: 219; sh: 78; python: 30; makefile: 15
file content (13 lines) | stat: -rwxr-xr-x 340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env ruby

require "openid/consumer/associationmanager"
require "openid/store/memstore"

store = OpenID::MemoryStore.new
ARGV.each do |server_url|
  mgr = OpenID::Consumer::AssociationManager.new(store, URI.parse(server_url))
  puts '=' * 50
  puts "Server: #{server_url}"
  puts mgr.get_association.serialize
  puts '-' * 50
end