A successful acknowledgement from the OpenID server that the supplied URL is, indeed controlled by the requesting agent.
# File lib/openid/consumer/responses.rb, line 62 def initialize(endpoint, message, signed_fields) # Don't use :endpoint=, because endpoint should never be nil # for a successfull transaction. @endpoint = endpoint @identity_url = endpoint.claimed_id @message = message @signed_fields = signed_fields end
Return response arguments in the specified namespace. If require_signed is true and the arguments are not signed, return nil.
# File lib/openid/consumer/responses.rb, line 109 def extension_response(namespace_uri, require_signed) if require_signed get_signed_ns(namespace_uri) else @message.get_args(namespace_uri) end end
Return the specified signed field if available, otherwise return default
# File lib/openid/consumer/responses.rb, line 85 def get_signed(ns_uri, ns_key, default=nil) if signed?(ns_uri, ns_key) return @message.get_arg(ns_uri, ns_key, default) else return default end end
Get signed arguments from the response message. Return a dict of all arguments in the specified namespace. If any of the arguments are not signed, return nil.
# File lib/openid/consumer/responses.rb, line 96 def get_signed_ns(ns_uri) msg_args = @message.get_args(ns_uri) msg_args.each_key do |key| if !signed?(ns_uri, key) return nil end end return msg_args end
Was this authentication response an OpenID 1 authentication response?
# File lib/openid/consumer/responses.rb, line 73 def is_openid1 @message.is_openid1 end
Generated with the Darkfish Rdoc Generator 2.