File: mkassoc

package info (click to toggle)
libopenid-ruby 2.1.2debian-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,140 kB
  • ctags: 3,251
  • sloc: ruby: 17,165; xml: 219; sh: 54; python: 30; makefile: 12
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