summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScytrin dai Kinthra <scytrin@gmail.com>2008-06-29 13:37:27 -0700
committerScytrin dai Kinthra <scytrin@gmail.com>2008-06-29 13:37:27 -0700
commitf3c8d9c5ecff23f59afb3dc5f58cbf2d1a24b836 (patch)
tree1ebd93d1d3c9cc7e412e5e24a95c44dd8dd5c56c
parent3e5d1aa8616ff0a289f6be2d90ca94e21a6c3b06 (diff)
downloadrack-f3c8d9c5ecff23f59afb3dc5f58cbf2d1a24b836.tar.gz
Additional documentation examples.
-rw-r--r--lib/rack/auth/openid.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/rack/auth/openid.rb b/lib/rack/auth/openid.rb
index 244da8fb..46b606b4 100644
--- a/lib/rack/auth/openid.rb
+++ b/lib/rack/auth/openid.rb
@@ -60,6 +60,17 @@ module Rack
# :login_good => 'http://mysite.com/auth_good'
# )
#
+ # complex_oid = OpenID.new('http://mysite.com/',
+ # :return_to => 'http://mysite.com/openid',
+ # :login_good => 'http://mysite.com/user/preferences',
+ # :auth_fail => [500, {'Content-Type'=>'text/plain'},
+ # 'Unable to negotiate with foreign server.'],
+ # :immediate => true,
+ # :extensions => {
+ # ::OpenID::SReg => [['email'],['nickname']]
+ # }
+ # )
+ #
# = Arguments
#
# The first argument is the realm, identifying the site they are trusting