SYMBOL INDEX (2348 symbols across 108 files) FILE: examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb class AddOpenIdStoreToDb (line 2) | class AddOpenIdStoreToDb < ActiveRecord::Migration method up (line 3) | def self.up method down (line 20) | def self.down FILE: examples/active_record_openid_store/XXX_upgrade_open_id_store.rb class UpgradeOpenIdStore (line 3) | class UpgradeOpenIdStore < ActiveRecord::Migration method up (line 4) | def self.up method down (line 14) | def self.down FILE: examples/active_record_openid_store/lib/association.rb class Association (line 4) | class Association < ActiveRecord::Base method from_record (line 6) | def from_record FILE: examples/active_record_openid_store/lib/nonce.rb class Nonce (line 1) | class Nonce < ActiveRecord::Base FILE: examples/active_record_openid_store/lib/open_id_setting.rb class OpenIdSetting (line 1) | class OpenIdSetting < ActiveRecord::Base FILE: examples/active_record_openid_store/lib/openid_ar_store.rb class ActiveRecordStore (line 6) | class ActiveRecordStore < OpenID::Store::Interface method store_association (line 7) | def store_association(server_url, assoc) method get_association (line 17) | def get_association(server_url, handle=nil) method remove_association (line 36) | def remove_association(server_url, handle) method use_nonce (line 40) | def use_nonce(server_url, timestamp, salt) method cleanup_nonces (line 47) | def cleanup_nonces method cleanup_associations (line 52) | def cleanup_associations FILE: examples/active_record_openid_store/test/store_test.rb type StoreTestCase (line 6) | module StoreTestCase function _gen_nonce (line 10) | def _gen_nonce function _gen_handle (line 14) | def _gen_handle(n) function _gen_secret (line 18) | def _gen_secret(n, chars=nil) function _gen_assoc (line 22) | def _gen_assoc(issued, lifetime=600) function _check_retrieve (line 29) | def _check_retrieve(url, handle=nil, expected=nil) function _check_remove (line 41) | def _check_remove(url, handle, expected) function test_store (line 46) | def test_store function _check_use_nonce (line 148) | def _check_use_nonce(nonce, expected, server_url, msg='') function test_nonce (line 154) | def test_nonce class TestARStore (line 204) | class TestARStore < Test::Unit::TestCase method setup (line 207) | def setup FILE: examples/rails_openid/app/controllers/application_controller.rb class ApplicationController (line 1) | class ApplicationController < ActionController::Base FILE: examples/rails_openid/app/controllers/consumer_controller.rb class ConsumerController (line 8) | class ConsumerController < ApplicationController method index (line 11) | def index method start (line 15) | def start method complete (line 58) | def complete method consumer (line 115) | def consumer FILE: examples/rails_openid/app/controllers/login_controller.rb class LoginController (line 6) | class LoginController < ApplicationController method base_url (line 10) | def base_url method index (line 14) | def index method submit (line 22) | def submit method logout (line 38) | def logout FILE: examples/rails_openid/app/controllers/server_controller.rb class ServerController (line 9) | class ServerController < ApplicationController method index (line 15) | def index method show_decision_page (line 75) | def show_decision_page(oidreq, message="Do you trust this site with yo... method user_page (line 86) | def user_page method user_xrds (line 114) | def user_xrds method idp_xrds (line 124) | def idp_xrds method decision (line 132) | def decision method server (line 170) | def server method approved (line 180) | def approved(trust_root) method is_authorized (line 185) | def is_authorized(identity_url, trust_root) method render_xrds (line 189) | def render_xrds(types) method add_sreg (line 213) | def add_sreg(oidreq, oidresp) method add_pape (line 231) | def add_pape(oidreq, oidresp) method render_response (line 239) | def render_response(oidresp) FILE: examples/rails_openid/app/helpers/application_helper.rb type ApplicationHelper (line 1) | module ApplicationHelper FILE: examples/rails_openid/app/helpers/login_helper.rb type LoginHelper (line 1) | module LoginHelper FILE: examples/rails_openid/app/helpers/server_helper.rb type ServerHelper (line 2) | module ServerHelper function url_for_user (line 4) | def url_for_user FILE: examples/rails_openid/config/application.rb type RailsOpenid (line 12) | module RailsOpenid class Application (line 13) | class Application < Rails::Application FILE: examples/rails_openid/public/javascripts/controls.js function addText (line 561) | function addText(mode, condition) { function fallback (line 857) | function fallback(name, expr) { FILE: examples/rails_openid/public/javascripts/effects.js function codeForEvent (line 231) | function codeForEvent(options,eventName){ function dispatch (line 248) | function dispatch(effect, eventName) { function parseColor (line 952) | function parseColor(color){ FILE: examples/rails_openid/public/javascripts/prototype.js function klass (line 50) | function klass() { function $A (line 812) | function $A(iterable) { function $w (line 945) | function $w(string) { function $H (line 993) | function $H(object) { function toQueryPair (line 999) | function toQueryPair(key, value) { function $ (line 1513) | function $(element) { function stripAlpha (line 2289) | function stripAlpha(filter){ function extend (line 2627) | function extend(tagName) { function copy (line 2634) | function copy(methods, destination, onlyIfAbsent) { function findDOMClass (line 2644) | function findDOMClass(tagName) { function $$ (line 3443) | function $$() { function getEventID (line 3935) | function getEventID(element) { function getDOMEventName (line 3941) | function getDOMEventName(eventName) { function getCacheForID (line 3946) | function getCacheForID(id) { function getWrappersForEventName (line 3950) | function getWrappersForEventName(id, eventName) { function createWrapper (line 3955) | function createWrapper(element, eventName, handler) { function findWrapper (line 3974) | function findWrapper(id, eventName, handler) { function destroyWrapper (line 3979) | function destroyWrapper(id, eventName, handler) { function destroyCache (line 3985) | function destroyCache() { function fireContentLoadedEvent (line 4102) | function fireContentLoadedEvent() { function iter (line 4251) | function iter(name) { FILE: examples/rails_openid/test/functional/login_controller_test.rb class LoginController (line 5) | class LoginController; def rescue_action(e) raise e end; end method rescue_action (line 5) | def rescue_action(e) raise e end class LoginControllerTest (line 7) | class LoginControllerTest < Test::Unit::TestCase method setup (line 8) | def setup method test_truth (line 15) | def test_truth FILE: examples/rails_openid/test/functional/server_controller_test.rb class ServerController (line 5) | class ServerController; def rescue_action(e) raise e end; end method rescue_action (line 5) | def rescue_action(e) raise e end class ServerControllerTest (line 7) | class ServerControllerTest < Test::Unit::TestCase method setup (line 8) | def setup method test_truth (line 15) | def test_truth FILE: examples/rails_openid/test/performance/browsing_test.rb class BrowsingTest (line 4) | class BrowsingTest < ActionDispatch::PerformanceTest method test_homepage (line 9) | def test_homepage FILE: examples/rails_openid/test/test_helper.rb class ActiveSupport::TestCase (line 5) | class ActiveSupport::TestCase FILE: lib/hmac/hmac.rb type HMAC (line 14) | module HMAC class Base (line 15) | class Base method initialize (line 16) | def initialize(algorithm, block_size, output_length, key) method check_status (line 27) | def check_status method set_key (line 35) | def set_key(key) method reset_key (line 51) | def reset_key method update (line 59) | def update(text) method digest (line 74) | def digest method hexdigest (line 79) | def hexdigest method digest (line 88) | def Base.digest(key, text) method hexdigest (line 98) | def Base.hexdigest(key, text) FILE: lib/hmac/sha1.rb type HMAC (line 4) | module HMAC class SHA1 (line 5) | class SHA1 < Base method initialize (line 6) | def initialize(key = nil) FILE: lib/hmac/sha2.rb type HMAC (line 4) | module HMAC class SHA256 (line 5) | class SHA256 < Base method initialize (line 6) | def initialize(key = nil) class SHA384 (line 12) | class SHA384 < Base method initialize (line 13) | def initialize(key = nil) class SHA512 (line 19) | class SHA512 < Base method initialize (line 20) | def initialize(key = nil) FILE: lib/openid.rb type OpenID (line 15) | module OpenID FILE: lib/openid/association.rb type OpenID (line 6) | module OpenID function get_secret_size (line 8) | def self.get_secret_size(assoc_type) class Association (line 20) | class Association method deserialize (line 27) | def self.deserialize(serialized) method from_expires_in (line 49) | def self.from_expires_in(expires_in, handle, secret, assoc_type) method initialize (line 54) | def initialize(handle, secret, issued, lifetime, assoc_type) method serialize (line 64) | def serialize method expires_in (line 81) | def expires_in(now=nil) method sign (line 96) | def sign(pairs) method make_pairs (line 111) | def make_pairs(message) method check_message_signature (line 122) | def check_message_signature(message) method get_message_signature (line 132) | def get_message_signature(message) method == (line 136) | def ==(other) method sign_message (line 151) | def sign_message(message) class AssociationNegotiator (line 183) | class AssociationNegotiator method get_session_types (line 186) | def self.get_session_types(assoc_type) method check_session_type (line 197) | def self.check_session_type(assoc_type, session_type) method initialize (line 204) | def initialize(allowed_types) method copy (line 208) | def copy method allowed_types= (line 212) | def allowed_types=(allowed_types) method add_allowed_type (line 219) | def add_allowed_type(assoc_type, session_type=nil) method allowed? (line 231) | def allowed?(assoc_type, session_type) method get_allowed_type (line 235) | def get_allowed_type FILE: lib/openid/consumer.rb type OpenID (line 12) | module OpenID class Consumer (line 180) | class Consumer method initialize (line 192) | def initialize(session, store) method begin (line 222) | def begin(openid_identifier, anonymous=false) method begin_without_discovery (line 244) | def begin_without_discovery(service, anonymous) method complete (line 283) | def complete(query, current_url) method session_get (line 301) | def session_get(name) method session_set (line 305) | def session_set(name, val) method session_key (line 309) | def session_key(suffix) method last_requested_endpoint (line 313) | def last_requested_endpoint method last_requested_endpoint= (line 317) | def last_requested_endpoint=(endpoint) method cleanup_last_requested_endpoint (line 321) | def cleanup_last_requested_endpoint method discovery_manager (line 325) | def discovery_manager(openid_identifier) method cleanup_session (line 329) | def cleanup_session method discover (line 334) | def discover(identifier) method negotiator (line 338) | def negotiator method association_manager (line 342) | def association_manager(service) method handle_idres (line 347) | def handle_idres(message, current_url) method complete_invalid (line 351) | def complete_invalid(message, unused_return_to) method complete_cancel (line 357) | def complete_cancel(unused_message, unused_return_to) method complete_error (line 361) | def complete_error(message, unused_return_to) method complete_setup_needed (line 370) | def complete_setup_needed(message, unused_return_to) method complete_id_res (line 379) | def complete_id_res(message, current_url) FILE: lib/openid/consumer/associationmanager.rb type OpenID (line 8) | module OpenID class Consumer (line 9) | class Consumer class DiffieHellmanSession (line 12) | class DiffieHellmanSession method initialize (line 18) | def initialize(dh=nil) method get_request (line 27) | def get_request method extract_secret (line 39) | def extract_secret(response) class DiffieHellmanSHA1Session (line 52) | class DiffieHellmanSHA1Session < DiffieHellmanSession class DiffieHellmanSHA256Session (line 61) | class DiffieHellmanSHA256Session < DiffieHellmanSession class NoEncryptionSession (line 69) | class NoEncryptionSession method get_request (line 76) | def get_request method extract_secret (line 80) | def extract_secret(response) class AssociationManager (line 88) | class AssociationManager method create_session (line 89) | def self.create_session(session_type) method initialize (line 103) | def initialize(store, server_url, compatibility_mode=false, method get_association (line 111) | def get_association method negotiate_association (line 127) | def negotiate_association method extract_supported_association_type (line 154) | def extract_supported_association_type(server_error, assoc_type) method request_association (line 191) | def request_association(assoc_type, session_type) method create_associate_request (line 215) | def create_associate_request(assoc_type, session_type) method get_openid1_session_type (line 246) | def get_openid1_session_type(assoc_response) method extract_expires_in (line 272) | def self.extract_expires_in(message) method extract_association (line 284) | def extract_association(assoc_response, assoc_session) FILE: lib/openid/consumer/checkid_request.rb type OpenID (line 4) | module OpenID class Consumer (line 5) | class Consumer class CheckIDRequest (line 15) | class CheckIDRequest method initialize (line 22) | def initialize(assoc, endpoint) method anonymous= (line 39) | def anonymous=(is_anonymous) method add_extension (line 51) | def add_extension(extension_request) method add_extension_arg (line 62) | def add_extension_arg(namespace, key, value) method get_message (line 77) | def get_message(realm, return_to=nil, immediate=false) method redirect_url (line 144) | def redirect_url(realm, return_to=nil, immediate=false) method form_markup (line 155) | def form_markup(realm, return_to=nil, immediate=false, method html_markup (line 164) | def html_markup(realm, return_to=nil, immediate=false, method send_redirect? (line 176) | def send_redirect?(realm, return_to=nil, immediate=false) FILE: lib/openid/consumer/discovery.rb type OpenID (line 16) | module OpenID class OpenIDServiceEndpoint (line 28) | class OpenIDServiceEndpoint method initialize (line 48) | def initialize method display_identifier (line 58) | def display_identifier method display_identifier= (line 77) | def display_identifier=(display_identifier) method uses_extension (line 81) | def uses_extension(extension_uri) method preferred_namespace (line 85) | def preferred_namespace method supports_type (line 94) | def supports_type(type_uri) method compatibility_mode (line 104) | def compatibility_mode method is_op_identifier (line 108) | def is_op_identifier method parse_service (line 112) | def parse_service(yadis_url, uri, type_uris, service_element) method get_local_id (line 129) | def get_local_id method to_session_value (line 139) | def to_session_value method == (line 143) | def ==(other) method from_session_value (line 147) | def self.from_session_value(value) method from_basic_service_endpoint (line 157) | def self.from_basic_service_endpoint(endpoint) method from_html (line 181) | def self.from_html(uri, html) method from_xrds (line 214) | def self.from_xrds(uri, xrds) method from_discovery_result (line 223) | def self.from_discovery_result(discoveryResult) method from_op_endpoint_url (line 241) | def self.from_op_endpoint_url(op_endpoint_url) method to_s (line 253) | def to_s function find_op_local_identifier (line 261) | def self.find_op_local_identifier(service_element, type_uris) function normalize_xri (line 309) | def self.normalize_xri(xri) function normalize_url (line 316) | def self.normalize_url(url) function best_matching_service (line 330) | def self.best_matching_service(service, preferred_types) function arrange_by_type (line 347) | def self.arrange_by_type(service_list, preferred_types) function get_op_or_user_services (line 370) | def self.get_op_or_user_services(openid_services) function discover_yadis (line 391) | def self.discover_yadis(uri) function discover_xri (line 437) | def self.discover_xri(iname) function discover_no_yadis (line 469) | def self.discover_no_yadis(uri) function discover_uri (line 483) | def self.discover_uri(uri) function discover (line 508) | def self.discover(identifier) FILE: lib/openid/consumer/discovery_manager.rb type OpenID (line 1) | module OpenID class Consumer (line 2) | class Consumer class DiscoveredServices (line 6) | class DiscoveredServices method initialize (line 9) | def initialize(starting_url, yadis_url, services) method next (line 16) | def next method for_url? (line 20) | def for_url?(url) method started? (line 24) | def started? method empty? (line 28) | def empty? method to_session_value (line 32) | def to_session_value method == (line 44) | def ==(other) method from_session_value (line 48) | def self.from_session_value(value) class DiscoveryManager (line 62) | class DiscoveryManager method initialize (line 63) | def initialize(session, url, session_key_suffix=nil) method get_next_service (line 70) | def get_next_service method cleanup (line 92) | def cleanup(force=false) method get_manager (line 105) | def get_manager(force=false) method create_manager (line 114) | def create_manager(yadis_url, services) method destroy_manager (line 127) | def destroy_manager(force=false) method session_key (line 133) | def session_key method store (line 137) | def store(manager) method load (line 141) | def load method destroy! (line 145) | def destroy! FILE: lib/openid/consumer/html_parse.rb type OpenID (line 3) | module OpenID function openid_unescape (line 23) | def OpenID.openid_unescape(s) function unescape_hash (line 27) | def OpenID.unescape_hash(h) function parse_link_attrs (line 36) | def OpenID.parse_link_attrs(html) function rel_matches (line 91) | def OpenID.rel_matches(rel_attr, target_rel) function link_has_rel (line 105) | def OpenID.link_has_rel(link_attrs, target_rel) function find_links_rel (line 113) | def OpenID.find_links_rel(link_attrs_list, target_rel) function find_first_href (line 130) | def OpenID.find_first_href(link_attrs_list, target_rel) FILE: lib/openid/consumer/idres.rb type OpenID (line 7) | module OpenID class TypeURIMismatch (line 8) | class TypeURIMismatch < ProtocolError method initialize (line 11) | def initialize(type_uri, endpoint) class Consumer (line 17) | class Consumer method openid1_return_to_nonce_name= (line 24) | def self.openid1_return_to_nonce_name=(query_arg_name) method openid1_return_to_nonce_name (line 29) | def self.openid1_return_to_nonce_name method openid1_return_to_claimed_id_name= (line 37) | def self.openid1_return_to_claimed_id_name=(query_arg_name) method openid1_return_to_claimed_id_name (line 42) | def self.openid1_return_to_claimed_id_name class IdResHandler (line 48) | class IdResHandler method initialize (line 51) | def initialize(message, current_url, store=nil, endpoint=nil) method signed_fields (line 62) | def signed_fields method id_res (line 72) | def id_res method server_url (line 80) | def server_url method openid_namespace (line 84) | def openid_namespace method fetch (line 88) | def fetch(field, default=NO_DEFAULT) method signed_list (line 92) | def signed_list method check_for_fields (line 104) | def check_for_fields method verify_return_to (line 140) | def verify_return_to method verify_return_to_args (line 153) | def verify_return_to_args(msg_return_to) method verify_return_to_base (line 190) | def verify_return_to_base(msg_return_to) method check_signature (line 205) | def check_signature method check_auth (line 228) | def check_auth method create_check_auth_request (line 242) | def create_check_auth_request method process_check_auth_response (line 258) | def process_check_auth_response(response) method check_nonce (line 277) | def check_nonce method verify_discovery_results (line 309) | def verify_discovery_results method verify_discovery_results_openid2 (line 324) | def verify_discovery_results_openid2 method verify_discovery_results_openid1 (line 367) | def verify_discovery_results_openid1 method discover_and_verify (line 418) | def discover_and_verify(claimed_id, to_match_endpoints) method verify_discovered_services (line 431) | def verify_discovered_services(claimed_id, services, to_match_endp... method verify_discovery_single (line 460) | def verify_discovery_single(endpoint, to_match) FILE: lib/openid/consumer/responses.rb type OpenID (line 1) | module OpenID class Consumer (line 2) | class Consumer type Response (line 22) | module Response function status (line 25) | def status function identity_url (line 31) | def identity_url function display_identifier (line 48) | def display_identifier class SuccessResponse (line 55) | class SuccessResponse method initialize (line 62) | def initialize(endpoint, message, signed_fields) method is_openid1 (line 73) | def is_openid1 method signed? (line 79) | def signed?(ns_uri, ns_key) method get_signed (line 85) | def get_signed(ns_uri, ns_key, default=nil) method get_signed_ns (line 96) | def get_signed_ns(ns_uri) method extension_response (line 109) | def extension_response(namespace_uri, require_signed) class FailureResponse (line 118) | class FailureResponse method initialize (line 123) | def initialize(endpoint, message, contact=nil, reference=nil) class CancelResponse (line 131) | class CancelResponse method initialize (line 134) | def initialize(endpoint) class SetupNeededResponse (line 139) | class SetupNeededResponse method initialize (line 144) | def initialize(endpoint, setup_url) FILE: lib/openid/consumer/session.rb type OpenID (line 1) | module OpenID class Consumer (line 2) | class Consumer class Session (line 3) | class Session method initialize (line 4) | def initialize(session, decode_klass = nil) method [] (line 9) | def [](key) method []= (line 14) | def []=(key, val) method keys (line 18) | def keys method to_session_value (line 24) | def to_session_value(val) FILE: lib/openid/cryptutil.rb type OpenID (line 18) | module OpenID type CryptUtil (line 21) | module CryptUtil function rand (line 30) | def CryptUtil.rand(max) function sha1 (line 35) | def CryptUtil.sha1(text) function hmac_sha1 (line 39) | def CryptUtil.hmac_sha1(key, text) function sha256 (line 47) | def CryptUtil.sha256(text) function hmac_sha256 (line 51) | def CryptUtil.hmac_sha256(key, text) function random_string (line 62) | def CryptUtil.random_string(length, chars=nil) function num_to_binary (line 75) | def CryptUtil.num_to_binary(n) function binary_to_num (line 83) | def CryptUtil.binary_to_num(s) function num_to_base64 (line 95) | def CryptUtil.num_to_base64(l) function base64_to_num (line 100) | def CryptUtil.base64_to_num(s) function const_eq (line 104) | def CryptUtil.const_eq(s1, s2) FILE: lib/openid/dh.rb type OpenID (line 4) | module OpenID class DiffieHellman (line 12) | class DiffieHellman method from_defaults (line 22) | def DiffieHellman.from_defaults method initialize (line 26) | def initialize(modulus=nil, generator=nil, priv=nil) method get_shared_secret (line 32) | def get_shared_secret(composite) method xor_secret (line 36) | def xor_secret(algorithm, composite, secret) method using_default_values? (line 43) | def using_default_values? method set_private (line 48) | def set_private(priv) method strxor (line 53) | def DiffieHellman.strxor(s, t) method powermod (line 71) | def DiffieHellman.powermod(x, n, q) FILE: lib/openid/extension.rb type OpenID (line 3) | module OpenID class Extension (line 5) | class Extension < Object method initialize (line 7) | def initialize method get_extension_args (line 14) | def get_extension_args method to_message (line 21) | def to_message(message = nil) FILE: lib/openid/extensions/ax.rb type OpenID (line 7) | module OpenID type AX (line 8) | module AX function check_alias (line 14) | def self.check_alias(name) class Error (line 22) | class Error < ArgumentError class AXMessage (line 26) | class AXMessage < Extension method initialize (line 37) | def initialize method check_mode (line 47) | def check_mode(ax_args) method new_args (line 54) | def new_args class AttrInfo (line 85) | class AttrInfo < Object method initialize (line 88) | def initialize(type_uri, ns_alias=nil, required=false, count=1) method wants_unlimited_values? (line 95) | def wants_unlimited_values? function to_type_uris (line 104) | def self.to_type_uris(namespace_map, alias_list_s) class FetchRequest (line 117) | class FetchRequest < AXMessage method initialize (line 123) | def initialize(update_url = nil) method add (line 134) | def add(attribute) method get_extension_args (line 143) | def get_extension_args method get_required_attrs (line 176) | def get_required_attrs method from_openid_request (line 189) | def self.from_openid_request(oidreq) method parse_extension_args (line 211) | def parse_extension_args(ax_args) method attributes (line 255) | def attributes method requested_types (line 260) | def requested_types method member? (line 264) | def member?(type_uri) class KeyValueMessage (line 273) | class KeyValueMessage < AXMessage method initialize (line 275) | def initialize method add_value (line 285) | def add_value(type_uri, value) method set_values (line 291) | def set_values(type_uri, values) method _get_extension_kv_args (line 297) | def _get_extension_kv_args(aliases = nil) method parse_extension_args (line 326) | def parse_extension_args(ax_args) method get_single (line 369) | def get_single(type_uri, default = nil) method get (line 380) | def get(type_uri) method [] (line 385) | def [](type_uri) method count (line 390) | def count(type_uri) class FetchResponse (line 397) | class FetchResponse < KeyValueMessage method initialize (line 405) | def initialize(update_url = nil) method get_extension_args (line 417) | def get_extension_args(request = nil) method parse_extension_args (line 467) | def parse_extension_args(ax_args) method from_success_response (line 474) | def self.from_success_response(success_response, signed=true) class StoreRequest (line 492) | class StoreRequest < KeyValueMessage method initialize (line 496) | def initialize method from_openid_request (line 504) | def self.from_openid_request(oidreq) method get_extension_args (line 513) | def get_extension_args(aliases=nil) class StoreResponse (line 523) | class StoreResponse < AXMessage method initialize (line 528) | def initialize(succeeded = true, error_message = nil) method from_success_response (line 541) | def self.from_success_response(success_response) method succeeded? (line 546) | def succeeded? method get_extension_args (line 550) | def get_extension_args FILE: lib/openid/extensions/oauth.rb type OpenID (line 7) | module OpenID type OAuth (line 9) | module OAuth class Request (line 13) | class Request < Extension method initialize (line 15) | def initialize(consumer=nil, scope=nil) method get_extension_args (line 23) | def get_extension_args method from_openid_request (line 33) | def self.from_openid_request(oid_req) method parse_extension_args (line 45) | def parse_extension_args(args) class Response (line 54) | class Response < Extension method initialize (line 56) | def initialize(request_token=nil, scope=nil) method from_success_response (line 64) | def self.from_success_response(success_response) method parse_extension_args (line 76) | def parse_extension_args(args, strict=false) method get_extension_args (line 81) | def get_extension_args FILE: lib/openid/extensions/pape.rb type OpenID (line 7) | module OpenID type PAPE (line 9) | module PAPE class Request (line 20) | class Request < Extension method initialize (line 22) | def initialize(preferred_auth_policies=[], max_auth_age=nil) method add_policy_uri (line 32) | def add_policy_uri(policy_uri) method get_extension_args (line 38) | def get_extension_args method from_openid_request (line 49) | def self.from_openid_request(oid_req) method parse_extension_args (line 61) | def parse_extension_args(args) method preferred_types (line 81) | def preferred_types(supported_types) class Response (line 88) | class Response < Extension method initialize (line 90) | def initialize(auth_policies=[], auth_time=nil, nist_auth_level=nil) method add_policy_uri (line 100) | def add_policy_uri(policy_uri) method from_success_response (line 105) | def self.from_success_response(success_response) method parse_extension_args (line 117) | def parse_extension_args(args, strict=false) method get_extension_args (line 153) | def get_extension_args FILE: lib/openid/extensions/sreg.rb type OpenID (line 5) | module OpenID type SReg (line 6) | module SReg function check_sreg_field_name (line 30) | def OpenID.check_sreg_field_name(fieldname) function supports_sreg? (line 37) | def OpenID.supports_sreg?(endpoint) function get_sreg_ns (line 45) | def OpenID.get_sreg_ns(message) class NamespaceError (line 72) | class NamespaceError < ArgumentError class Request (line 76) | class Request < Extension method initialize (line 79) | def initialize(required = nil, optional = nil, policy_url = nil, n... method from_openid_request (line 101) | def self.from_openid_request(request) method parse_extension_args (line 126) | def parse_extension_args(args, strict = false) method all_requested_fields (line 153) | def all_requested_fields method were_fields_requested? (line 158) | def were_fields_requested? method request_field (line 171) | def request_field(field_name, required=false, strict=false) method request_fields (line 196) | def request_fields(field_names, required = false, strict = false) method get_extension_args (line 206) | def get_extension_args method member? (line 214) | def member?(field_name) class Response (line 224) | class Response < Extension method initialize (line 227) | def initialize(data = {}, ns_uri=NS_URI) method extract_response (line 235) | def self.extract_response(request, data) method from_success_response (line 245) | def self.from_success_response(success_response, signed_only = true) method get_extension_args (line 259) | def get_extension_args method [] (line 265) | def [](field_name) method empty? (line 270) | def empty? FILE: lib/openid/extensions/ui.rb type OpenID (line 6) | module OpenID type UI (line 8) | module UI class Request (line 11) | class Request < Extension method initialize (line 13) | def initialize(mode = nil, icon = nil, lang = nil) method get_extension_args (line 21) | def get_extension_args method from_openid_request (line 32) | def self.from_openid_request(oid_req) method parse_extension_args (line 43) | def parse_extension_args(args) FILE: lib/openid/fetchers.rb type Net (line 15) | module Net class HTTP (line 16) | class HTTP method post_connection_check (line 17) | def post_connection_check(hostname) type OpenID (line 46) | module OpenID class HTTPResponse (line 49) | class HTTPResponse method _from_net_response (line 54) | def self._from_net_response(response, final_url, headers=nil) method method_missing (line 61) | def method_missing(method, *args) method body= (line 65) | def body=(s) class FetchingError (line 76) | class FetchingError < OpenIDError class HTTPRedirectLimitReached (line 79) | class HTTPRedirectLimitReached < FetchingError class SSLFetchingError (line 82) | class SSLFetchingError < FetchingError function fetch (line 87) | def self.fetch(url, body=nil, headers=nil, function fetcher (line 92) | def self.fetcher function fetcher= (line 100) | def self.fetcher=(fetcher) function fetcher_use_env_http_proxy (line 106) | def self.fetcher_use_env_http_proxy class StandardFetcher (line 115) | class StandardFetcher method initialize (line 126) | def initialize(proxy_addr=nil, proxy_port=nil, method supports_ssl? (line 133) | def supports_ssl?(conn) method make_http (line 137) | def make_http(uri) method set_verified (line 144) | def set_verified(conn, verify) method make_connection (line 152) | def make_connection(uri) method fetch (line 181) | def fetch(url, body=nil, headers=nil, redirect_limit=REDIRECT_LIMIT) method setup_encoding (line 252) | def setup_encoding(response) FILE: lib/openid/kvform.rb type OpenID (line 2) | module OpenID class KVFormError (line 4) | class KVFormError < Exception type Util (line 7) | module Util function seq_to_kv (line 9) | def Util.seq_to_kv(seq, strict=false) function kv_to_seq (line 63) | def Util.kv_to_seq(data, strict=false) function dict_to_kv (line 127) | def Util.dict_to_kv(d) function kv_to_dict (line 131) | def Util.kv_to_dict(s) FILE: lib/openid/kvpost.rb type OpenID (line 4) | module OpenID class ServerError (line 7) | class ServerError < OpenIDError method initialize (line 10) | def initialize(error_text, error_code, message) method from_message (line 17) | def self.from_message(msg) class KVPostNetworkError (line 25) | class KVPostNetworkError < OpenIDError class HTTPStatusError (line 27) | class HTTPStatusError < OpenIDError class Message (line 30) | class Message method from_http_response (line 31) | def self.from_http_response(response, server_url) function make_kv_post (line 50) | def self.make_kv_post(request_message, server_url) FILE: lib/openid/message.rb type OpenID (line 4) | module OpenID class UndefinedOpenIDNamespace (line 54) | class UndefinedOpenIDNamespace < Exception; end class NamespaceAliasRegistrationError (line 57) | class NamespaceAliasRegistrationError < Exception; end class InvalidOpenIDNamespace (line 61) | class InvalidOpenIDNamespace < Exception; end class Message (line 63) | class Message class KeyNotFound (line 67) | class KeyNotFound < IndexError ; end method register_namespace_alias (line 78) | def Message.register_namespace_alias(namespace_uri, alias_) method initialize (line 100) | def initialize(openid_namespace=nil) method from_post_args (line 114) | def Message.from_post_args(args) method from_openid_args (line 139) | def Message.from_openid_args(openid_args) method _from_openid_args (line 147) | def _from_openid_args(openid_args) method _get_default_namespace (line 188) | def _get_default_namespace(mystery_alias) method set_openid_namespace (line 196) | def set_openid_namespace(openid_ns_uri, implicit) method get_openid_namespace (line 204) | def get_openid_namespace method is_openid1 (line 208) | def is_openid1 method is_openid2 (line 212) | def is_openid2 method from_kvform (line 217) | def Message.from_kvform(kvform_string) method copy (line 221) | def copy method to_post_args (line 226) | def to_post_args method to_args (line 253) | def to_args method to_form_markup (line 268) | def to_form_markup(action_url, form_tag_attrs=nil, submit_text='Cont... method to_url (line 300) | def to_url(base_url) method to_kvform (line 307) | def to_kvform method to_url_encoded (line 312) | def to_url_encoded method _fix_ns (line 318) | def _fix_ns(namespace) method has_key? (line 351) | def has_key?(namespace, ns_key) method get_key (line 357) | def get_key(namespace, ns_key) method get_arg (line 376) | def get_arg(namespace, key, default=nil) method get_args (line 388) | def get_args(namespace) method update_args (line 399) | def update_args(namespace, updates) method set_arg (line 405) | def set_arg(namespace, key, value) method del_arg (line 414) | def del_arg(namespace, key) method == (line 420) | def ==(other) method get_aliased_arg (line 424) | def get_aliased_arg(aliased_key, default=nil) class NamespaceMap (line 458) | class NamespaceMap method initialize (line 460) | def initialize method get_alias (line 466) | def get_alias(namespace_uri) method get_namespace_uri (line 470) | def get_namespace_uri(namespace_alias) method add_alias (line 475) | def add_alias(namespace_uri, desired_alias, implicit=false) method add (line 510) | def add(namespace_uri) method member? (line 531) | def member?(namespace_uri) method each (line 535) | def each method namespace_uris (line 539) | def namespace_uris method implicit? (line 544) | def implicit?(namespace_uri) method aliases (line 548) | def aliases FILE: lib/openid/protocolerror.rb type OpenID (line 3) | module OpenID class ProtocolError (line 6) | class ProtocolError < OpenIDError FILE: lib/openid/server.rb type OpenID (line 12) | module OpenID type Server (line 14) | module Server class OpenIDRequest (line 28) | class OpenIDRequest method initialize (line 35) | def initialize method namespace (line 40) | def namespace class CheckAuthRequest (line 53) | class CheckAuthRequest < OpenIDRequest method initialize (line 76) | def initialize(assoc_handle, signed, invalidate_handle=nil) method from_message (line 89) | def self.from_message(message, op_endpoint=UNUSED) method answer (line 121) | def answer(signatory) method to_s (line 141) | def to_s class BaseServerSession (line 157) | class BaseServerSession method initialize (line 160) | def initialize(session_type, allowed_assoc_types) method allowed_assoc_type? (line 165) | def allowed_assoc_type?(typ) class PlainTextServerSession (line 175) | class PlainTextServerSession < BaseServerSession method initialize (line 181) | def initialize method from_message (line 185) | def self.from_message(unused_request) method answer (line 189) | def answer(secret) class DiffieHellmanSHA1ServerSession (line 199) | class DiffieHellmanSHA1ServerSession < BaseServerSession method initialize (line 210) | def initialize(dh, consumer_pubkey) method from_message (line 222) | def self.from_message(message) method answer (line 260) | def answer(secret) class DiffieHellmanSHA256ServerSession (line 271) | class DiffieHellmanSHA256ServerSession < DiffieHellmanSHA1ServerSession method initialize (line 272) | def initialize(*args) class AssociateRequest (line 284) | class AssociateRequest < OpenIDRequest method initialize (line 303) | def initialize(session, assoc_type) method from_message (line 312) | def self.from_message(message, op_endpoint=UNUSED) method answer (line 363) | def answer(assoc) method answer_unsupported (line 383) | def answer_unsupported(message, preferred_association_type=nil, class CheckIDRequest (line 411) | class CheckIDRequest < OpenIDRequest method initialize (line 447) | def initialize(identity, return_to, op_endpoint, trust_root=nil, method from_message (line 490) | def self.from_message(message, op_endpoint) method id_select (line 573) | def id_select method trust_root_valid (line 579) | def trust_root_valid method return_to_verified (line 612) | def return_to_verified method answer (line 657) | def answer(allow, server_url=nil, identity=nil, claimed_id=nil) method encode_to_url (line 769) | def encode_to_url(server_url) method cancel_url (line 804) | def cancel_url method to_s (line 829) | def to_s class OpenIDResponse (line 850) | class OpenIDResponse method initialize (line 860) | def initialize(request) method to_s (line 866) | def to_s method to_form_markup (line 878) | def to_form_markup(form_tag_attrs=nil) method to_html (line 884) | def to_html(form_tag_attrs=nil) method render_as_form (line 888) | def render_as_form method needs_signing (line 894) | def needs_signing method which_encoding (line 901) | def which_encoding method encode_to_url (line 916) | def encode_to_url method add_extension (line 922) | def add_extension(extension_response) method encode_to_kvform (line 931) | def encode_to_kvform method copy (line 943) | def copy class WebResponse (line 953) | class WebResponse method initialize (line 964) | def initialize(code=HTTP_OK, headers=nil, body="") class Signatory (line 986) | class Signatory method _normal_key (line 997) | def self._normal_key method _dumb_key (line 1001) | def self._dumb_key method initialize (line 1009) | def initialize(store) method verify (line 1016) | def verify(assoc_handle, message) method sign (line 1040) | def sign(response) method create_association (line 1076) | def create_association(dumb=true, assoc_type='HMAC-SHA1') method get_association (line 1095) | def get_association(assoc_handle, dumb, checkExpiration=true) method invalidate (line 1128) | def invalidate(assoc_handle, dumb) class Encoder (line 1146) | class Encoder method encode (line 1153) | def encode(response) class SigningEncoder (line 1180) | class SigningEncoder < Encoder method initialize (line 1185) | def initialize(signatory) method encode (line 1196) | def encode(response) class Decoder (line 1218) | class Decoder method initialize (line 1231) | def initialize(server) method decode (line 1242) | def decode(query) method default_decoder (line 1270) | def default_decoder(message, server) class Server (line 1289) | class Server method initialize (line 1314) | def initialize(store, op_endpoint) method handle_request (line 1329) | def handle_request(request) method openid_check_authentication (line 1342) | def openid_check_authentication(request) method openid_associate (line 1347) | def openid_associate(request) method decode_request (line 1370) | def decode_request(query) method encode_response (line 1381) | def encode_response(response) class ProtocolError (line 1387) | class ProtocolError < Exception method initialize (line 1394) | def initialize(message, text=nil, reference=nil, contact=nil) method get_return_to (line 1403) | def get_return_to method has_return_to (line 1412) | def has_return_to method to_message (line 1418) | def to_message method encode_to_url (line 1437) | def encode_to_url method encode_to_kvform (line 1441) | def encode_to_kvform method to_form_markup (line 1445) | def to_form_markup method to_html (line 1449) | def to_html method which_encoding (line 1458) | def which_encoding class VersionError (line 1488) | class VersionError < Exception class NoReturnToError (line 1493) | class NoReturnToError < Exception class EncodingError (line 1499) | class EncodingError < Exception method initialize (line 1503) | def initialize(response) class AlreadySigned (line 1510) | class AlreadySigned < EncodingError class UntrustedReturnURL (line 1514) | class UntrustedReturnURL < ProtocolError method initialize (line 1517) | def initialize(message, return_to, trust_root) method to_s (line 1523) | def to_s class MalformedReturnURL (line 1531) | class MalformedReturnURL < ProtocolError method initialize (line 1534) | def initialize(openid_message, return_to) class MalformedTrustRoot (line 1541) | class MalformedTrustRoot < ProtocolError FILE: lib/openid/store/filesystem.rb type OpenID (line 9) | module OpenID type Store (line 10) | module Store class Filesystem (line 11) | class Filesystem < Interface method initialize (line 15) | def initialize(directory) method get_association_filename (line 28) | def get_association_filename(server_url, handle) method store_association (line 46) | def store_association(server_url, association) method get_association (line 79) | def get_association(server_url, handle=nil) method _get_association (line 99) | def _get_association(filename) method remove_association (line 129) | def remove_association(server_url, handle) method use_nonce (line 141) | def use_nonce(server_url, timestamp, salt) method cleanup (line 170) | def cleanup method cleanup_associations (line 175) | def cleanup_associations method cleanup_nonces (line 205) | def cleanup_nonces method mktemp (line 225) | def mktemp method filename_escape (line 231) | def filename_escape(s) method safe64 (line 240) | def safe64(s) method remove_if_present (line 250) | def remove_if_present(filename) method ensure_dir (line 260) | def ensure_dir(dir_name) FILE: lib/openid/store/interface.rb type OpenID (line 3) | module OpenID type Store (line 9) | module Store class Interface (line 15) | class Interface < Object method store_association (line 21) | def store_association(server_url, association) method get_association (line 29) | def get_association(server_url, handle=nil) method remove_association (line 35) | def remove_association(server_url, handle) method use_nonce (line 48) | def use_nonce(server_url, timestamp, salt) method cleanup_nonces (line 56) | def cleanup_nonces method cleanup_associations (line 63) | def cleanup_associations method cleanup (line 70) | def cleanup FILE: lib/openid/store/memcache.rb type OpenID (line 6) | module OpenID type Store (line 7) | module Store class Memcache (line 8) | class Memcache < Interface method initialize (line 11) | def initialize(cache_client, key_prefix='openid-store:') method store_association (line 20) | def store_association(server_url, association) method get_association (line 32) | def get_association(server_url, handle=nil) method remove_association (line 43) | def remove_association(server_url, handle) method use_nonce (line 61) | def use_nonce(server_url, timestamp, salt) method assoc_key (line 73) | def assoc_key(server_url, assoc_handle=nil) method cleanup_nonces (line 81) | def cleanup_nonces method cleanup (line 84) | def cleanup method cleanup_associations (line 87) | def cleanup_associations method delete (line 92) | def delete(key) method serialize (line 101) | def serialize(assoc) method deserialize (line 105) | def deserialize(assoc_str) method expiry (line 110) | def expiry(t) FILE: lib/openid/store/memory.rb type OpenID (line 2) | module OpenID type Store (line 3) | module Store class Memory (line 9) | class Memory < Interface method initialize (line 11) | def initialize method store_association (line 16) | def store_association(server_url, assoc) method get_association (line 21) | def get_association(server_url, handle=nil) method remove_association (line 33) | def remove_association(server_url, handle) method use_nonce (line 42) | def use_nonce(server_url, timestamp, salt) method cleanup_associations (line 50) | def cleanup_associations method cleanup_nonces (line 63) | def cleanup_nonces method deepcopy (line 77) | def deepcopy(o) FILE: lib/openid/store/nonce.rb type OpenID (line 5) | module OpenID type Nonce (line 6) | module Nonce function skew (line 17) | def Nonce.skew function skew= (line 21) | def Nonce.skew=(new_skew) function split_nonce (line 26) | def Nonce.split_nonce(nonce_str) function check_timestamp (line 37) | def Nonce.check_timestamp(nonce_str, allowed_skew=nil, now=nil) function mk_nonce (line 56) | def Nonce.mk_nonce(time = nil) FILE: lib/openid/trustroot.rb type OpenID (line 4) | module OpenID class RealmVerificationRedirected (line 6) | class RealmVerificationRedirected < Exception method initialize (line 8) | def initialize(relying_party_url, rp_url_after_redirects) method to_s (line 13) | def to_s type TrustRoot (line 19) | module TrustRoot function _extract_return_url (line 59) | def TrustRoot._extract_return_url(endpoint) function return_to_matches (line 69) | def TrustRoot.return_to_matches(allowed_return_to_urls, return_to) function get_allowed_return_urls (line 96) | def TrustRoot.get_allowed_return_urls(relying_party_url) function verify_return_to (line 118) | def TrustRoot.verify_return_to(realm_str, return_to, _vrfy=nil) class TrustRoot (line 150) | class TrustRoot method _build_path (line 156) | def TrustRoot._build_path(path, query=nil, frag=nil) method _parse_url (line 173) | def TrustRoot._parse_url(url) method parse (line 194) | def TrustRoot.parse(trust_root) method check_sanity (line 224) | def TrustRoot.check_sanity(trust_root_string) method check_url (line 235) | def self.check_url(trust_root, url) method build_discovery_url (line 250) | def build_discovery_url method initialize (line 261) | def initialize(unparsed, proto, wildcard, host, port, path) method sane? (line 270) | def sane? method validate_url (line 303) | def validate_url(url) FILE: lib/openid/urinorm.rb type OpenID (line 3) | module OpenID type URINorm (line 5) | module URINorm function urinorm (line 7) | def URINorm.urinorm(uri) function reserved (line 35) | def URINorm.reserved(chr) function remove_dot_segments (line 39) | def URINorm.remove_dot_segments(path) FILE: lib/openid/util.rb type OpenID (line 6) | module OpenID class AssertionError (line 7) | class AssertionError < Exception class OpenIDError (line 13) | class OpenIDError < StandardError type Util (line 16) | module Util function assert (line 27) | def Util.assert(value, message=nil) function to_base64 (line 33) | def Util.to_base64(s) function from_base64 (line 37) | def Util.from_base64(s) function urlencode (line 45) | def Util.urlencode(args) function parse_query (line 61) | def Util.parse_query(qs) function append_args (line 67) | def Util.append_args(url, args) function logger= (line 82) | def Util.logger=(logger) function logger (line 86) | def Util.logger function log (line 91) | def Util.log(message) function auto_submit_html (line 95) | def Util.auto_submit_html(form, title='OpenID transaction in progress') function html_encode (line 116) | def Util.html_encode(str) FILE: lib/openid/version.rb type OpenID (line 1) | module OpenID FILE: lib/openid/yadis/accept.rb type OpenID (line 1) | module OpenID type Yadis (line 3) | module Yadis function generate_accept_header (line 8) | def self.generate_accept_header(*elements) function parse_accept_header (line 39) | def self.parse_accept_header(value) function match_types (line 80) | def self.match_types(accept_types, have_types) function get_acceptable (line 132) | def self.get_acceptable(accept_header, have_types) FILE: lib/openid/yadis/constants.rb type OpenID (line 4) | module OpenID type Yadis (line 6) | module Yadis FILE: lib/openid/yadis/discovery.rb type OpenID (line 7) | module OpenID class DiscoveryFailure (line 10) | class DiscoveryFailure < OpenIDError method initialize (line 13) | def initialize(message, http_response) type Yadis (line 20) | module Yadis class DiscoveryResult (line 23) | class DiscoveryResult method initialize (line 40) | def initialize(request_uri) method used_yadis_location? (line 52) | def used_yadis_location? method is_xrds (line 57) | def is_xrds function discover (line 74) | def self.discover(uri) function where_is_yadis? (line 124) | def self.where_is_yadis?(resp) FILE: lib/openid/yadis/filters.rb type OpenID (line 6) | module OpenID type Yadis (line 7) | module Yadis class BasicServiceEndpoint (line 8) | class BasicServiceEndpoint method initialize (line 22) | def initialize(yadis_url, type_uris, uri, service_element) method match_types (line 33) | def match_types(type_uris) method from_basic_service_endpoint (line 42) | def self.from_basic_service_endpoint(endpoint) method from_basic_service_endpoint (line 48) | def from_basic_service_endpoint(endpoint) class TransformFilterMaker (line 66) | class TransformFilterMaker method initialize (line 75) | def initialize(filter_procs) method get_service_endpoints (line 81) | def get_service_endpoints(yadis_url, service_element) method apply_filters (line 100) | def apply_filters(endpoint) class CompoundFilter (line 116) | class CompoundFilter method initialize (line 121) | def initialize(subfilters) method get_service_endpoints (line 127) | def get_service_endpoints(yadis_url, service_element) function make_filter (line 145) | def self.make_filter(parts) function mk_compound_filter (line 163) | def self.mk_compound_filter(parts) FILE: lib/openid/yadis/htmltokenizer.rb class HTMLTokenizer (line 46) | class HTMLTokenizer method version (line 50) | def self.version method initialize (line 57) | def initialize(content) method reset (line 63) | def reset method peekNextToken (line 68) | def peekNextToken method getNextToken (line 103) | def getNextToken method getTag (line 119) | def getTag(*sought_tags) method getText (line 133) | def getText(until_tag = nil) method getTrimmedText (line 163) | def getTrimmedText(until_tag = nil) class HTMLTokenizerError (line 169) | class HTMLTokenizerError < Exception class HTMLToken (line 173) | class HTMLToken method initialize (line 177) | def initialize(text) method to_s (line 182) | def to_s method text (line 187) | def text method trimmed_text (line 191) | def trimmed_text method == (line 196) | def ==(other) class HTMLText (line 202) | class HTMLText < HTMLToken method text (line 203) | def text class HTMLComment (line 209) | class HTMLComment < HTMLToken method initialize (line 211) | def initialize(text) class HTMLTag (line 223) | class HTMLTag < HTMLToken method initialize (line 225) | def initialize(text) method attr_hash (line 254) | def attr_hash method text (line 289) | def text FILE: lib/openid/yadis/parsehtml.rb type OpenID (line 4) | module OpenID type Yadis (line 5) | module Yadis function html_yadis_location (line 6) | def Yadis.html_yadis_location(html) FILE: lib/openid/yadis/services.rb type OpenID (line 6) | module OpenID type Yadis (line 7) | module Yadis function get_service_endpoints (line 8) | def Yadis.get_service_endpoints(input_url, flt=nil) function apply_filter (line 27) | def Yadis.apply_filter(normalized_uri, xrd_data, flt=nil) FILE: lib/openid/yadis/xrds.rb type OpenID (line 7) | module OpenID type Yadis (line 8) | module Yadis class XRDSError (line 18) | class XRDSError < StandardError; end class XRDSFraud (line 22) | class XRDSFraud < XRDSError function get_canonical_id (line 25) | def Yadis::get_canonical_id(iname, xrd_tree) class XRDSError (line 87) | class XRDSError < StandardError function parseXRDS (line 90) | def Yadis::parseXRDS(text) function disable_entity_expansion (line 110) | def Yadis::disable_entity_expansion function is_xrds? (line 118) | def Yadis::is_xrds?(xrds_tree) function get_yadis_xrd (line 125) | def Yadis::get_yadis_xrd(xrds_tree) function each_service (line 135) | def Yadis::each_service(xrds_tree, &block) function services (line 140) | def Yadis::services(xrds_tree) function expand_service (line 148) | def Yadis::expand_service(service_element) function prio_sort (line 159) | def Yadis::prio_sort(elements) FILE: lib/openid/yadis/xri.rb type OpenID (line 3) | module OpenID type Yadis (line 4) | module Yadis type XRI (line 5) | module XRI function identifier_scheme (line 11) | def self.identifier_scheme(identifier) function to_iri_normal (line 25) | def self.to_iri_normal(xri) function escape_for_iri (line 33) | def self.escape_for_iri(xri) function to_uri_normal (line 48) | def self.to_uri_normal(xri) function iri_to_uri (line 53) | def self.iri_to_uri(iri) function provider_is_authoritative (line 60) | def self.provider_is_authoritative(provider_id, canonical_id) function root_authority (line 67) | def self.root_authority(xri) function make_xri (line 81) | def self.make_xri(xri) FILE: lib/openid/yadis/xrires.rb type OpenID (line 6) | module OpenID type Yadis (line 8) | module Yadis type XRI (line 10) | module XRI class XRIHTTPError (line 12) | class XRIHTTPError < StandardError; end class ProxyResolver (line 14) | class ProxyResolver method initialize (line 18) | def initialize(proxy_url=nil) method query_url (line 28) | def query_url(xri, service_type=nil) method query (line 45) | def query(xri) function urlencode (line 69) | def self.urlencode(args) function append_args (line 77) | def self.append_args(url, args) FILE: setup.rb type Enumerable (line 12) | module Enumerable function read (line 18) | def File.read(fname) type Errno (line 26) | module Errno class ENOTEMPTY (line 27) | class ENOTEMPTY function binread (line 33) | def File.binread(fname) function dir? (line 40) | def File.dir?(path) class ConfigTable (line 45) | class ConfigTable method initialize (line 49) | def initialize(rbconfig) method verbose? (line 66) | def verbose? method no_harm? (line 72) | def no_harm? method [] (line 78) | def [](key) method []= (line 82) | def []=(key, val) method names (line 86) | def names method each (line 90) | def each(&block) method key? (line 94) | def key?(name) method lookup (line 98) | def lookup(name) method add (line 102) | def add(item) method remove (line 107) | def remove(name) method load_script (line 114) | def load_script(path, inst = nil) method savefile (line 120) | def savefile method load_savefile (line 124) | def load_savefile method save (line 135) | def save method load_standard_entries (line 144) | def load_standard_entries method standard_entries (line 150) | def standard_entries(rbconfig) method load_multipackage_entries (line 263) | def load_multipackage_entries method multipackage_entries (line 269) | def multipackage_entries method fixup (line 298) | def fixup method parse_opt (line 307) | def parse_opt(opt) method dllext (line 312) | def dllext method value_config? (line 316) | def value_config?(name) class Item (line 320) | class Item method initialize (line 321) | def initialize(name, template, default, desc) method help_opt (line 335) | def help_opt method value? (line 339) | def value? method value (line 343) | def value method resolve (line 347) | def resolve(table) method set (line 351) | def set(val) method check (line 357) | def check(val) class BoolItem (line 363) | class BoolItem < Item method config_type (line 364) | def config_type method help_opt (line 368) | def help_opt method check (line 374) | def check(val) class PathItem (line 383) | class PathItem < Item method config_type (line 384) | def config_type method check (line 390) | def check(path) class ProgramItem (line 396) | class ProgramItem < Item method config_type (line 397) | def config_type class SelectItem (line 402) | class SelectItem < Item method initialize (line 403) | def initialize(name, selection, default, desc) method config_type (line 408) | def config_type method check (line 414) | def check(val) class ExecItem (line 422) | class ExecItem < Item method initialize (line 423) | def initialize(name, selection, desc, &block) method config_type (line 429) | def config_type method value? (line 433) | def value? method resolve (line 437) | def resolve(table) method evaluate (line 443) | def evaluate(val, table) class PackageSelectionItem (line 452) | class PackageSelectionItem < Item method initialize (line 453) | def initialize(name, template, default, help_default, desc) method config_type (line 460) | def config_type method check (line 466) | def check(val) class MetaConfigEnvironment (line 474) | class MetaConfigEnvironment method intiailize (line 475) | def intiailize(config, installer) method config_names (line 480) | def config_names method config? (line 484) | def config?(name) method bool_config? (line 488) | def bool_config?(name) method path_config? (line 492) | def path_config?(name) method value_config? (line 496) | def value_config?(name) method add_config (line 500) | def add_config(item) method add_bool_config (line 504) | def add_bool_config(name, default, desc) method add_path_config (line 508) | def add_path_config(name, default, desc) method set_config_default (line 512) | def set_config_default(name, default) method remove_config (line 516) | def remove_config(name) method packages (line 521) | def packages method declare_packages (line 527) | def declare_packages(list) type FileOperations (line 537) | module FileOperations function mkdir_p (line 539) | def mkdir_p(dirname, prefix = nil) function rm_f (line 556) | def rm_f(path) function rm_rf (line 562) | def rm_rf(path) function remove_tree (line 568) | def remove_tree(path) function remove_tree0 (line 578) | def remove_tree0(path) function move_file (line 598) | def move_file(src, dest) function force_remove_file (line 611) | def force_remove_file(path) function remove_file (line 618) | def remove_file(path) function install (line 623) | def install(from, dest, mode, prefix = nil) function diff? (line 649) | def diff?(new_content, path) function command (line 654) | def command(*args) function ruby (line 660) | def ruby(*args) function make (line 664) | def make(task = nil) function extdir? (line 668) | def extdir?(dir) function files_of (line 672) | def files_of(dir) function directories_of (line 680) | def directories_of(dir) type HookScriptAPI (line 690) | module HookScriptAPI function get_config (line 692) | def get_config(key) function set_config (line 699) | def set_config(key, val) function curr_srcdir (line 707) | def curr_srcdir function curr_objdir (line 711) | def curr_objdir function srcfile (line 715) | def srcfile(path) function srcexist? (line 719) | def srcexist?(path) function srcdirectory? (line 723) | def srcdirectory?(path) function srcfile? (line 727) | def srcfile?(path) function srcentries (line 731) | def srcentries(path = '.') function srcfiles (line 737) | def srcfiles(path = '.') function srcdirectories (line 743) | def srcdirectories(path = '.') class ToplevelInstaller (line 752) | class ToplevelInstaller method invoke (line 768) | def ToplevelInstaller.invoke method multipackage? (line 777) | def ToplevelInstaller.multipackage? method load_rbconfig (line 781) | def ToplevelInstaller.load_rbconfig method initialize (line 792) | def initialize(ardir_root, config) method config (line 799) | def config(key) method inspect (line 803) | def inspect method invoke (line 807) | def invoke method run_metaconfigs (line 831) | def run_metaconfigs method init_installers (line 835) | def init_installers method srcdir_root (line 843) | def srcdir_root method objdir_root (line 847) | def objdir_root method relpath (line 851) | def relpath method parsearg_global (line 859) | def parsearg_global method valid_task? (line 885) | def valid_task?(t) method valid_task_re (line 889) | def valid_task_re method parsearg_no_options (line 893) | def parsearg_no_options method parsearg_config (line 905) | def parsearg_config method parsearg_install (line 931) | def parsearg_install method print_usage (line 948) | def print_usage(out) method exec_config (line 990) | def exec_config method exec_setup (line 995) | def exec_setup method exec_install (line 999) | def exec_install method exec_test (line 1003) | def exec_test method exec_show (line 1007) | def exec_show method exec_clean (line 1013) | def exec_clean method exec_distclean (line 1017) | def exec_distclean class ToplevelInstallerMulti (line 1024) | class ToplevelInstallerMulti < ToplevelInstaller method initialize (line 1028) | def initialize(ardir_root, config) method run_metaconfigs (line 1035) | def run_metaconfigs method packages= (line 1044) | def packages=(list) method init_installers (line 1053) | def init_installers method extract_selection (line 1068) | def extract_selection(list) method print_usage (line 1076) | def print_usage(f) method exec_config (line 1087) | def exec_config method exec_setup (line 1094) | def exec_setup method exec_install (line 1100) | def exec_install method exec_test (line 1106) | def exec_test method exec_clean (line 1112) | def exec_clean method exec_distclean (line 1119) | def exec_distclean method each_selected_installers (line 1130) | def each_selected_installers method run_hook (line 1141) | def run_hook(id) method verbose? (line 1146) | def verbose? method no_harm? (line 1151) | def no_harm? class Installer (line 1158) | class Installer method initialize (line 1165) | def initialize(config, srcroot, objroot) method inspect (line 1172) | def inspect method srcdir_root (line 1180) | def srcdir_root method objdir_root (line 1184) | def objdir_root method relpath (line 1188) | def relpath method verbose? (line 1197) | def verbose? method no_harm? (line 1202) | def no_harm? method verbose_off (line 1206) | def verbose_off method exec_config (line 1219) | def exec_config method config_dir_bin (line 1223) | def config_dir_bin(rel) method config_dir_lib (line 1226) | def config_dir_lib(rel) method config_dir_man (line 1229) | def config_dir_man(rel) method config_dir_ext (line 1232) | def config_dir_ext(rel) method extconf (line 1236) | def extconf method config_dir_data (line 1240) | def config_dir_data(rel) method config_dir_conf (line 1243) | def config_dir_conf(rel) method exec_setup (line 1250) | def exec_setup method setup_dir_bin (line 1254) | def setup_dir_bin(rel) method adjust_shebang (line 1260) | def adjust_shebang(path) method setup_dir_lib (line 1279) | def setup_dir_lib(rel) method setup_dir_man (line 1282) | def setup_dir_man(rel) method setup_dir_ext (line 1285) | def setup_dir_ext(rel) method setup_dir_data (line 1289) | def setup_dir_data(rel) method setup_dir_conf (line 1292) | def setup_dir_conf(rel) method exec_install (line 1299) | def exec_install method install_dir_bin (line 1304) | def install_dir_bin(rel) method install_dir_lib (line 1308) | def install_dir_lib(rel) method install_dir_ext (line 1312) | def install_dir_ext(rel) method install_dir_data (line 1319) | def install_dir_data(rel) method install_dir_conf (line 1323) | def install_dir_conf(rel) method install_dir_man (line 1329) | def install_dir_man(rel) method install_files (line 1333) | def install_files(list, dest, mode) method rubyscripts (line 1340) | def rubyscripts method rubyextentions (line 1344) | def rubyextentions(dir) method targetfiles (line 1352) | def targetfiles method mapdir (line 1356) | def mapdir(ents) method existfiles (line 1374) | def existfiles method hookfiles (line 1378) | def hookfiles method glob_select (line 1384) | def glob_select(pat, ents) method glob_reject (line 1389) | def glob_reject(pats, ents) method globs2re (line 1401) | def globs2re(pats) method exec_test (line 1413) | def exec_test method exec_clean (line 1426) | def exec_clean method clean_dir_bin (line 1432) | def clean_dir_bin(rel) method clean_dir_lib (line 1435) | def clean_dir_lib(rel) method clean_dir_ext (line 1438) | def clean_dir_ext(rel) method clean_dir_data (line 1443) | def clean_dir_data(rel) method clean_dir_conf (line 1446) | def clean_dir_conf(rel) method exec_distclean (line 1453) | def exec_distclean method distclean_dir_bin (line 1459) | def distclean_dir_bin(rel) method distclean_dir_lib (line 1462) | def distclean_dir_lib(rel) method distclean_dir_ext (line 1465) | def distclean_dir_ext(rel) method distclean_dir_data (line 1470) | def distclean_dir_data(rel) method distclean_dir_conf (line 1473) | def distclean_dir_conf(rel) method exec_task_traverse (line 1480) | def exec_task_traverse(task) method traverse (line 1492) | def traverse(task, rel, mid) method dive_into (line 1503) | def dive_into(rel) method run_hook (line 1518) | def run_hook(id) class SetupError (line 1533) | class SetupError < StandardError; end function setup_rb_error (line 1535) | def setup_rb_error(msg) FILE: test/discoverdata.rb type OpenID (line 7) | module OpenID type DiscoverData (line 9) | module DiscoverData function readTests (line 39) | def readTests(filename) function getData (line 50) | def getData(filename, name) function fillTemplate (line 59) | def fillTemplate(test_name, template, base_url, example_xrds) function generateSample (line 74) | def generateSample(test_name, base_url, function generateResult (line 90) | def generateResult(base_url, input_name, id_name, result_name, success) FILE: test/test_accept.rb type OpenID (line 6) | module OpenID class AcceptTest (line 8) | class AcceptTest < Minitest::Test method getTestData (line 11) | def getTestData() method chunk (line 24) | def chunk(lines) method parseLines (line 49) | def parseLines(chunk) method parseAvailable (line 63) | def parseAvailable(available_text) method parseExpected (line 70) | def parseExpected(expected_text) method test_accept_headers (line 92) | def test_accept_headers method test_generate_accept_header (line 130) | def test_generate_accept_header FILE: test/test_association.rb type OpenID (line 5) | module OpenID class AssociationTestCase (line 6) | class AssociationTestCase < Minitest::Test method setup (line 7) | def setup method test_round_trip (line 18) | def test_round_trip method test_deserialize_failure (line 25) | def test_deserialize_failure method test_serialization_identity (line 40) | def test_serialization_identity method test_expires_in (line 45) | def test_expires_in method test_from_expires_in (line 52) | def test_from_expires_in method test_sign_sha1 (line 71) | def test_sign_sha1 method test_sign_message_with_sig (line 95) | def test_sign_message_with_sig method test_sign_message_with_signed (line 105) | def test_sign_message_with_signed method test_sign_different_assoc_handle (line 115) | def test_sign_different_assoc_handle method test_sign_bad_assoc_type (line 125) | def test_sign_bad_assoc_type method test_make_pairs (line 132) | def test_make_pairs method test_check_message_signature_no_signed (line 148) | def test_check_message_signature_no_signed method test_check_message_signature_no_sig (line 161) | def test_check_message_signature_no_sig method test_check_message_signature_bad_sig (line 174) | def test_check_message_signature_bad_sig method test_check_message_signature_good_sig (line 186) | def test_check_message_signature_good_sig class AssociationNegotiatorTestCase (line 206) | class AssociationNegotiatorTestCase < Minitest::Test method assert_equal_under (line 207) | def assert_equal_under(item1, item2) method test_copy (line 213) | def test_copy method test_add_allowed (line 220) | def test_add_allowed method test_bad_assoc_type (line 239) | def test_bad_assoc_type method test_bad_session_type (line 245) | def test_bad_session_type method test_default_negotiator (line 251) | def test_default_negotiator method test_encrypted_negotiator (line 257) | def test_encrypted_negotiator FILE: test/test_associationmanager.rb type OpenID (line 14) | module OpenID class DHAssocSessionTest (line 15) | class DHAssocSessionTest < Minitest::Test method test_sha1_get_request (line 16) | def test_sha1_get_request method test_sha1_get_request_custom_dh (line 23) | def test_sha1_get_request_custom_dh type TestDiffieHellmanResponseParametersMixin (line 35) | module TestDiffieHellmanResponseParametersMixin function setup (line 36) | def setup function test_extract_secret (line 60) | def test_extract_secret function test_absent_serve_public (line 68) | def test_absent_serve_public function test_absent_mac_key (line 76) | def test_absent_mac_key function test_invalid_base64_public (line 84) | def test_invalid_base64_public function test_invalid_base64_mac_key (line 93) | def test_invalid_base64_mac_key class TestConsumerOpenID1DHSHA1 (line 103) | class TestConsumerOpenID1DHSHA1 < Minitest::Test class TestConsumerOpenID2DHSHA1 (line 113) | class TestConsumerOpenID2DHSHA1 < Minitest::Test class TestConsumerOpenID2DHSHA256 (line 123) | class TestConsumerOpenID2DHSHA256 < Minitest::Test class TestConsumerNoEncryptionSession (line 133) | class TestConsumerNoEncryptionSession < Minitest::Test method setup (line 134) | def setup method test_empty_request (line 138) | def test_empty_request method test_get_secret (line 142) | def test_get_secret class TestCreateAssociationRequest (line 150) | class TestCreateAssociationRequest < Minitest::Test method setup (line 151) | def setup method test_no_encryption_sends_type (line 162) | def test_no_encryption_sends_type method test_no_encryption_compatibility (line 179) | def test_no_encryption_compatibility method test_dh_sha1_compatibility (line 192) | def test_dh_sha1_compatibility class TestAssociationManagerExpiresIn (line 217) | class TestAssociationManagerExpiresIn < Minitest::Test method expires_in_msg (line 218) | def expires_in_msg(val) method test_parse_fail (line 223) | def test_parse_fail method test_parse (line 237) | def test_parse class TestAssociationManagerCreateSession (line 249) | class TestAssociationManagerCreateSession < Minitest::Test method test_invalid (line 250) | def test_invalid method test_sha256 (line 256) | def test_sha256 type NegotiationTestMixin (line 262) | module NegotiationTestMixin function mk_message (line 264) | def mk_message(args) function call_negotiate (line 269) | def call_negotiate(responses, negotiator=nil) class TestOpenID2SessionNegotiation (line 293) | class TestOpenID2SessionNegotiation < Minitest::Test method setup (line 298) | def setup method test_bad_response (line 305) | def test_bad_response method test_empty_assoc_type (line 313) | def test_empty_assoc_type method test_empty_session_type (line 330) | def test_empty_session_type method test_not_allowed (line 347) | def test_not_allowed method test_unsupported_with_retry (line 366) | def test_unsupported_with_retry method test_unsupported_with_retry_and_fail (line 382) | def test_unsupported_with_retry_and_fail method test_valid (line 397) | def test_valid class TestOpenID1SessionNegotiation (line 414) | class TestOpenID1SessionNegotiation < Minitest::Test method setup (line 419) | def setup method test_bad_response (line 424) | def test_bad_response method test_empty_assoc_type (line 431) | def test_empty_assoc_type method test_empty_session_type (line 443) | def test_empty_session_type method test_not_allowed (line 455) | def test_not_allowed method test_unsupported_with_retry (line 473) | def test_unsupported_with_retry method test_valid (line 489) | def test_valid class TestExtractAssociation (line 499) | class TestExtractAssociation < Minitest::Test method setup (line 510) | def setup method assert_session_mismatch (line 559) | def assert_session_mismatch(req_type, resp_type, ns) method test_openid1_no_encryption_fallback (line 599) | def test_openid1_no_encryption_fallback class GetOpenIDSessionTypeTest (line 620) | class GetOpenIDSessionTypeTest < Minitest::Test method do_test (line 625) | def do_test(expected_session_type, session_type_value) method test_explicit_no_encryption (line 660) | def test_explicit_no_encryption class ExtractAssociationTest (line 667) | class ExtractAssociationTest < Minitest::Test method setup (line 672) | def setup method call_extract (line 712) | def call_extract method test_works_with_good_fields (line 718) | def test_works_with_good_fields method test_bad_assoc_type (line 727) | def test_bad_assoc_type method test_bad_expires_in (line 734) | def test_bad_expires_in class TestExtractAssociationDiffieHellman (line 741) | class TestExtractAssociationDiffieHellman < Minitest::Test method setup (line 746) | def setup method setup_dh (line 750) | def setup_dh method test_success (line 774) | def test_success method test_openid2success (line 784) | def test_openid2success method test_bad_dh_values (line 791) | def test_bad_dh_values class TestAssocManagerGetAssociation (line 800) | class TestAssocManagerGetAssociation < Minitest::Test method setup (line 806) | def setup method set_negotiate_response (line 815) | def set_negotiate_response(assoc) method test_not_in_store_no_response (line 819) | def test_not_in_store_no_response method test_not_in_store_negotiate_assoc (line 824) | def test_not_in_store_negotiate_assoc method test_in_store_no_response (line 838) | def test_in_store_no_response method test_request_assoc_with_status_error (line 844) | def test_request_assoc_with_status_error class TestAssocManagerRequestAssociation (line 860) | class TestAssocManagerRequestAssociation < Minitest::Test method setup (line 864) | def setup method make_request (line 878) | def make_request method test_success (line 892) | def test_success method test_missing_fields (line 898) | def test_missing_fields method test_protocol_error (line 907) | def test_protocol_error FILE: test/test_ax.rb type OpenID (line 8) | module OpenID type AX (line 9) | module AX class BogusAXMessage (line 10) | class BogusAXMessage < AXMessage method get_extension_args (line 13) | def get_extension_args method do_check_mode (line 17) | def do_check_mode(args) method do_check_mode_new_args (line 21) | def do_check_mode_new_args class AXMessageTest (line 26) | class AXMessageTest < Minitest::Test method setup (line 27) | def setup method test_check_mode (line 31) | def test_check_mode method test_check_mode_new_args (line 36) | def test_check_mode_new_args class AttrInfoTest (line 41) | class AttrInfoTest < Minitest::Test method test_construct (line 42) | def test_construct class ToTypeURIsTest (line 54) | class ToTypeURIsTest < Minitest::Test method setup (line 55) | def setup method test_empty (line 59) | def test_empty method test_undefined (line 66) | def test_undefined method test_one (line 72) | def test_one method test_two (line 80) | def test_two class ParseAXValuesTest (line 94) | class ParseAXValuesTest < Minitest::Test method ax_values (line 95) | def ax_values(ax_args, expected_args) method ax_error (line 101) | def ax_error(ax_args, error) method test_empty_is_valid (line 108) | def test_empty_is_valid method test_missing_value_for_alias_explodes (line 112) | def test_missing_value_for_alias_explodes method test_count_present_but_not_value (line 116) | def test_count_present_but_not_value method test_invalid_count_value (line 120) | def test_invalid_count_value method test_request_unlimited_values (line 128) | def test_request_unlimited_values method test_long_alias (line 141) | def test_long_alias method test_invalid_alias (line 155) | def test_invalid_alias method test_count_present_and_is_zero (line 174) | def test_count_present_and_is_zero method test_singleton_empty (line 183) | def test_singleton_empty method test_double_alias (line 192) | def test_double_alias method test_double_singleton (line 203) | def test_double_singleton method singleton_value (line 214) | def singleton_value class FetchRequestTest (line 224) | class FetchRequestTest < Minitest::Test method setup (line 225) | def setup method test_mode (line 231) | def test_mode method test_construct (line 235) | def test_construct method test_add (line 244) | def test_add method test_add_twice (line 253) | def test_add_twice method do_extension_args (line 260) | def do_extension_args(expected_args) method test_get_extension_args_empty (line 265) | def test_get_extension_args_empty method test_get_extension_args_no_alias (line 269) | def test_get_extension_args_no_alias method test_get_extension_args_alias_if_available (line 283) | def test_get_extension_args_alias_if_available method test_get_extension_args_alias_req (line 291) | def test_get_extension_args_alias_req method test_get_required_attrs_empty (line 300) | def test_get_required_attrs_empty method test_parse_extension_args_extra_type (line 304) | def test_parse_extension_args_extra_type method test_parse_extension_args (line 312) | def test_parse_extension_args method test_extension_args_idempotent (line 329) | def test_extension_args_idempotent method test_extension_args_idempotent_count_required (line 340) | def test_extension_args_idempotent_count_required method test_extension_args_count1 (line 352) | def test_extension_args_count1 method test_from_openid_request_no_ax (line 368) | def test_from_openid_request_no_ax method test_from_openid_request_wrong_ax_mode (line 376) | def test_from_openid_request_wrong_ax_mode method test_openid_update_url_verification_error (line 397) | def test_openid_update_url_verification_error method test_openid_no_realm (line 413) | def test_openid_no_realm method test_openid_update_url_verification_success (line 428) | def test_openid_update_url_verification_success method test_openid_update_url_verification_success_return_to (line 443) | def test_openid_update_url_verification_success_return_to method test_add_extension (line 458) | def test_add_extension class FetchResponseTest (line 486) | class FetchResponseTest < Minitest::Test method setup (line 487) | def setup method test_construct (line 496) | def test_construct method test_get_extension_args_empty (line 501) | def test_get_extension_args_empty method test_get_extension_args_empty_request (line 508) | def test_get_extension_args_empty_request method test_get_extension_args_empty_request_some (line 516) | def test_get_extension_args_empty_request_some method test_update_url_in_response (line 529) | def test_update_url_in_response method test_get_extension_args_single_value_response (line 543) | def test_get_extension_args_single_value_response method test_get_extension_args_array_value_response (line 557) | def test_get_extension_args_array_value_response method test_get_extension_args_some_not_request (line 576) | def test_get_extension_args_some_not_request method test_get_single_success (line 582) | def test_get_single_success method test_get_single_none (line 587) | def test_get_single_none method test_get_single_extra (line 591) | def test_get_single_extra method test_from_unsigned_success_response (line 596) | def test_from_unsigned_success_response method test_from_signed_success_response (line 621) | def test_from_signed_success_response method test_from_signed_success_response_with_unsigned_attributes (line 647) | def test_from_signed_success_response_with_unsigned_attributes method test_from_empty_success_response (line 669) | def test_from_empty_success_response class StoreRequestTest (line 678) | class StoreRequestTest < Minitest::Test method setup (line 679) | def setup method test_construct (line 685) | def test_construct method test_get_extension_args_empty (line 689) | def test_get_extension_args_empty method test_from_openid_request_wrong_ax_mode (line 696) | def test_from_openid_request_wrong_ax_mode method test_get_extension_args_nonempty (line 717) | def test_get_extension_args_nonempty class StoreResponseTest (line 732) | class StoreResponseTest < Minitest::Test method test_success (line 733) | def test_success method test_fail_nomsg (line 741) | def test_fail_nomsg method test_fail_msg (line 749) | def test_fail_msg FILE: test/test_checkid_request.rb type OpenID (line 7) | module OpenID class Consumer (line 8) | class Consumer class CheckIDRequest (line 9) | class CheckIDRequest class DummyEndpoint (line 10) | class DummyEndpoint method initialize (line 14) | def initialize method get_local_id (line 21) | def get_local_id method compatibility_mode (line 25) | def compatibility_mode type CheckIDTestMixin (line 30) | module CheckIDTestMixin function setup (line 33) | def setup function assert_has_identifiers (line 45) | def assert_has_identifiers(msg, local_id, claimed_id) function assert_openid_key_exists (line 50) | def assert_openid_key_exists(msg, key) function assert_openid_key_absent (line 55) | def assert_openid_key_absent(msg, key) function assert_openid_value_equal (line 59) | def assert_openid_value_equal(msg, key, expected) function assert_anonymous (line 66) | def assert_anonymous(msg) function assert_has_required_fields (line 72) | def assert_has_required_fields(msg) function test_check_no_assoc_handle (line 88) | def test_check_no_assoc_handle function test_add_extension_arg (line 96) | def test_add_extension_arg function test_standard (line 115) | def test_standard function test_send_redirect? (line 122) | def test_send_redirect? class TestCheckIDRequestOpenID2 (line 138) | class TestCheckIDRequestOpenID2 < Minitest::Test method immediate (line 141) | def immediate method expected_mode (line 145) | def expected_mode method preferred_namespace (line 149) | def preferred_namespace method assert_has_realm (line 155) | def assert_has_realm(msg) method assert_identifiers_present (line 160) | def assert_identifiers_present(msg) method test_set_anonymous_works_for_openid2 (line 168) | def test_set_anonymous_works_for_openid2 method test_user_anonymous_ignores_identfier (line 174) | def test_user_anonymous_ignores_identfier method test_op_anonymous_ignores_identifier (line 183) | def test_op_anonymous_ignores_identifier method test_op_identifier_sends_identifier_select (line 193) | def test_op_identifier_sends_identifier_select method test_no_assoc_handle (line 202) | def test_no_assoc_handle class TestCheckIDRequestOpenID1 (line 210) | class TestCheckIDRequestOpenID1 < Minitest::Test method immediate (line 213) | def immediate method preferred_namespace (line 217) | def preferred_namespace method expected_mode (line 221) | def expected_mode method assert_has_identifiers (line 226) | def assert_has_identifiers(msg, op_specific_id, claimed_id) method assert_identifiers_present (line 231) | def assert_identifiers_present(msg) method assert_has_realm (line 238) | def assert_has_realm(msg) method test_set_anonymous_fails_for_openid1 (line 246) | def test_set_anonymous_fails_for_openid1 method test_identifier_select (line 258) | def test_identifier_select class TestCheckIDRequestOpenID1Immediate (line 270) | class TestCheckIDRequestOpenID1Immediate < TestCheckIDRequestOpenID1 method immediate (line 271) | def immediate method expected_mode (line 275) | def expected_mode class TestCheckid_RequestOpenID2Immediate (line 280) | class TestCheckid_RequestOpenID2Immediate < TestCheckIDRequestOpenID2 method immediate (line 281) | def immediate method expected_mode (line 285) | def expected_mode FILE: test/test_consumer.rb type OpenID (line 5) | module OpenID class Consumer (line 6) | class Consumer type TestConsumer (line 7) | module TestConsumer class TestLastEndpoint (line 8) | class TestLastEndpoint < Minitest::Test method test_set_get (line 9) | def test_set_get class TestBegin (line 23) | class TestBegin < Minitest::Test method setup (line 27) | def setup method consumer (line 37) | def consumer method test_begin (line 54) | def test_begin method test_begin_failure (line 61) | def test_begin_failure method test_begin_fallback (line 68) | def test_begin_fallback class TestBeginWithoutDiscovery (line 82) | class TestBeginWithoutDiscovery < Minitest::Test method setup (line 84) | def setup method consumer (line 93) | def consumer method call_begin_without_discovery (line 109) | def call_begin_without_discovery method cid_name (line 118) | def cid_name method nonce_name (line 122) | def nonce_name method test_begin_without_openid1 (line 126) | def test_begin_without_openid1 method test_begin_without_openid1_anonymous (line 134) | def test_begin_without_openid1_anonymous method test_begin_without_openid2 (line 141) | def test_begin_without_openid2 method test_begin_without_openid2_anonymous (line 148) | def test_begin_without_openid2_anonymous class TestComplete (line 157) | class TestComplete < Minitest::Test method setup (line 158) | def setup method test_bad_mode (line 163) | def test_bad_mode method test_missing_mode (line 169) | def test_missing_mode method test_cancel (line 174) | def test_cancel method test_setup_needed_openid1 (line 179) | def test_setup_needed_openid1 method test_setup_needed_openid2 (line 184) | def test_setup_needed_openid2 method test_idres_setup_needed_openid1 (line 192) | def test_idres_setup_needed_openid1 method test_error (line 203) | def test_error method test_idres_openid1 (line 223) | def test_idres_openid1 FILE: test/test_cryptutil.rb class CryptUtilTestCase (line 6) | class CryptUtilTestCase < Minitest::Test method test_rand (line 9) | def test_rand method test_rand_doesnt_depend_on_srand (line 22) | def test_rand_doesnt_depend_on_srand method test_random_binary_convert (line 30) | def test_random_binary_convert method test_enumerated_binary_convert (line 40) | def test_enumerated_binary_convert method with_n2b64 (line 58) | def with_n2b64 method test_base64_to_num (line 69) | def test_base64_to_num method test_base64_to_num_invalid (line 75) | def test_base64_to_num_invalid method test_num_to_base64 (line 81) | def test_num_to_base64 method test_randomstring (line 87) | def test_randomstring method test_randomstring_population (line 95) | def test_randomstring_population method test_sha1 (line 100) | def test_sha1 method test_hmac_sha1 (line 105) | def test_hmac_sha1 method test_sha256 (line 110) | def test_sha256 method test_hmac_sha256 (line 115) | def test_hmac_sha256 FILE: test/test_dh.rb type OpenID (line 5) | module OpenID class DiffieHellmanExposed (line 6) | class DiffieHellmanExposed < OpenID::DiffieHellman method strxor_for_testing (line 7) | def DiffieHellmanExposed.strxor_for_testing(a, b) class DiffieHellmanTestCase (line 12) | class DiffieHellmanTestCase < Minitest::Test method test_strxor_success (line 17) | def test_strxor_success method test_strxor_failure (line 34) | def test_strxor_failure method test_simple_exchange (line 47) | def test_simple_exchange method test_xor_secret (line 55) | def test_xor_secret method test_dh (line 64) | def test_dh method test_using_defaults (line 79) | def test_using_defaults FILE: test/test_discover.rb type OpenID (line 14) | module OpenID class SimpleMockFetcher (line 15) | class SimpleMockFetcher method initialize (line 16) | def initialize(test, responses) method fetch (line 21) | def fetch(url, body=nil, headers=nil, limit=nil) class TestDiscoveryFailure (line 29) | class TestDiscoveryFailure < Minitest::Test method initialize (line 30) | def initialize(*args) method test_discovery_failure (line 44) | def test_discovery_failure class ErrorRaisingFetcher (line 67) | class ErrorRaisingFetcher method initialize (line 70) | def initialize(thing_to_raise) method fetch (line 74) | def fetch(url, body=nil, headers=nil, limit=nil) class DidFetch (line 79) | class DidFetch < Exception class TestFetchException (line 83) | class TestFetchException < Minitest::Test method initialize (line 86) | def initialize(*args) method test_fetch_exception (line 97) | def test_fetch_exception class TestNormalization (line 110) | class TestNormalization < Minitest::Test method test_addingProtocol (line 111) | def test_addingProtocol class DiscoveryMockFetcher (line 126) | class DiscoveryMockFetcher method initialize (line 127) | def initialize(documents) method fetch (line 133) | def fetch(url, body=nil, headers=nil, limit=nil) class BaseTestDiscovery (line 155) | class BaseTestDiscovery < Minitest::Test method initialize (line 158) | def initialize(*args) method _checkService (line 165) | def _checkService(s, server_url, claimed_id=nil, method setup (line 211) | def setup method teardown (line 217) | def teardown method test_blank (line 221) | def test_blank class TestDiscovery (line 232) | class TestDiscovery < BaseTestDiscovery method _discover (line 235) | def _discover(content_type, data, method test_404 (line 249) | def test_404 method test_noOpenID (line 255) | def test_noOpenID method test_malformed_meta_tag (line 274) | def test_malformed_meta_tag method test_html1 (line 301) | def test_html1 method test_html1Fragment (line 315) | def test_html1Fragment method test_html2 (line 339) | def test_html2 method test_html1And2 (line 353) | def test_html1And2 method test_html_utf8 (line 370) | def test_html_utf8 method test_yadisEmpty (line 384) | def test_yadisEmpty method test_htmlEmptyYadis (line 390) | def test_htmlEmptyYadis method test_yadis1NoDelegate (line 410) | def test_yadis1NoDelegate method test_yadis2NoLocalID (line 424) | def test_yadis2NoLocalID method test_yadis2 (line 438) | def test_yadis2 method test_yadis2OP (line 452) | def test_yadis2OP method test_yadis2OPDelegate (line 464) | def test_yadis2OPDelegate method test_yadis2BadLocalID (line 477) | def test_yadis2BadLocalID method test_yadis1And2 (line 485) | def test_yadis1And2 method test_yadis1And2BadLocalID (line 499) | def test_yadis1And2BadLocalID class MockFetcherForXRIProxy (line 508) | class MockFetcherForXRIProxy method initialize (line 510) | def initialize(documents, proxy_url=Yadis::XRI::ProxyResolver::DEFAU... method fetch (line 516) | def fetch(url, body=nil, headers=nil, limit=nil) class TestXRIDiscovery (line 547) | class TestXRIDiscovery < BaseTestDiscovery method initialize (line 552) | def initialize(*args) method test_xri (line 563) | def test_xri method test_xri_normalize (line 585) | def test_xri_normalize method test_xriNoCanonicalID (line 607) | def test_xriNoCanonicalID method test_useCanonicalID (line 614) | def test_useCanonicalID class TestXRIDiscoveryIDP (line 624) | class TestXRIDiscoveryIDP < BaseTestDiscovery method initialize (line 627) | def initialize(*args) method test_xri (line 636) | def test_xri class TestPreferredNamespace (line 644) | class TestPreferredNamespace < Minitest::Test method initialize (line 645) | def initialize(*args) method test_preferred_namespace (line 662) | def test_preferred_namespace class TestIsOPIdentifier (line 673) | class TestIsOPIdentifier < Minitest::Test method setup (line 674) | def setup method test_none (line 678) | def test_none method test_openid1_0 (line 682) | def test_openid1_0 method test_openid1_1 (line 687) | def test_openid1_1 method test_openid2 (line 692) | def test_openid2 method test_openid2OP (line 697) | def test_openid2OP method test_multipleMissing (line 702) | def test_multipleMissing method test_multiplePresent (line 708) | def test_multiplePresent class TestFromOPEndpointURL (line 716) | class TestFromOPEndpointURL < Minitest::Test method setup (line 717) | def setup method test_isOPEndpoint (line 722) | def test_isOPEndpoint method test_noIdentifiers (line 726) | def test_noIdentifiers method test_compatibility (line 731) | def test_compatibility method test_canonical_id (line 735) | def test_canonical_id method test_serverURL (line 739) | def test_serverURL class TestDiscoverFunction (line 744) | class TestDiscoverFunction < Minitest::Test method test_discover_function (line 745) | def test_discover_function class TestEndpointSupportsType (line 766) | class TestEndpointSupportsType < Minitest::Test method setup (line 767) | def setup method failUnlessSupportsOnly (line 771) | def failUnlessSupportsOnly(*types) method test_supportsNothing (line 787) | def test_supportsNothing method test_openid2 (line 791) | def test_openid2 method test_openid2provider (line 796) | def test_openid2provider method test_openid1_0 (line 802) | def test_openid1_0 method test_openid1_1 (line 807) | def test_openid1_1 method test_multiple (line 812) | def test_multiple method test_multipleWithProvider (line 819) | def test_multipleWithProvider class TestEndpointDisplayIdentifier (line 829) | class TestEndpointDisplayIdentifier < Minitest::Test method test_strip_fragment (line 830) | def test_strip_fragment class TestNormalizeURL (line 838) | class TestNormalizeURL < Minitest::Test method test_no_host (line 839) | def test_no_host FILE: test/test_discovery_manager.rb type OpenID (line 5) | module OpenID class TestDiscoveredServices (line 6) | class TestDiscoveredServices < Minitest::Test method setup (line 7) | def setup method test_next (line 17) | def test_next method test_for_url (line 28) | def test_for_url method test_started (line 36) | def test_started method test_empty (line 46) | def test_empty class PassthroughDiscoveryManager (line 60) | class PassthroughDiscoveryManager < Consumer::DiscoveryManager method method_missing (line 61) | def method_missing(m, *args) class TestDiscoveryManager (line 66) | class TestDiscoveryManager < Minitest::Test method setup (line 67) | def setup method test_construct (line 77) | def test_construct method test_get_next_service (line 86) | def test_get_next_service method test_cleanup (line 129) | def test_cleanup method test_get_manager (line 166) | def test_get_manager method test_create_manager (line 185) | def test_create_manager class DestroyCalledException (line 212) | class DestroyCalledException < StandardError; end method test_destroy_manager (line 214) | def test_destroy_manager method test_session_key (line 235) | def test_session_key method test_store (line 240) | def test_store method test_load (line 247) | def test_load method test_destroy! (line 253) | def test_destroy! FILE: test/test_extension.rb type OpenID (line 5) | module OpenID class DummyExtension (line 6) | class DummyExtension < OpenID::Extension method initialize (line 9) | def initialize method get_extension_args (line 14) | def get_extension_args class ToMessageTest (line 19) | class ToMessageTest < Minitest::Test method test_OpenID1 (line 20) | def test_OpenID1 method test_OpenID2 (line 33) | def test_OpenID2 FILE: test/test_fetchers.rb type OpenSSL (line 15) | module OpenSSL type SSL (line 16) | module SSL class SSLError (line 17) | class SSLError < StandardError; end type HttpResultAssertions (line 22) | module HttpResultAssertions function assert_http_result_is (line 23) | def assert_http_result_is(expected, result) class BogusFetcher (line 30) | class BogusFetcher method fetch (line 33) | def fetch(url, body=nil, headers=nil, redirect_limit=5) class FetcherTestCase (line 38) | class FetcherTestCase < Minitest::Test class ExpectedResponse (line 45) | class ExpectedResponse < Net::HTTPResponse method initialize (line 48) | def initialize(code, final_url, body="the expected body", method body (line 56) | def body method _redirect_with_code (line 76) | def _redirect_with_code(code) method _respond_with_code (line 83) | def _respond_with_code(code) method _require_header (line 90) | def _require_header method _require_post (line 97) | def _require_post method _redirect_loop (line 104) | def _redirect_loop method _utf8_page (line 120) | def _utf8_page method _unencoded_page (line 128) | def _unencoded_page method _badly_encoded_page (line 136) | def _badly_encoded_page method setup (line 144) | def setup method _uri_build (line 181) | def _uri_build(path='/') method teardown (line 190) | def teardown method test_headers (line 213) | def test_headers method test_headers_after_redirect (line 224) | def test_headers_after_redirect method test_post (line 235) | def test_post method test_redirect_limit (line 243) | def test_redirect_limit method test_utf8_page (line 251) | def test_utf8_page method test_unencoded_page (line 260) | def test_unencoded_page method test_badly_encoded_page (line 271) | def test_badly_encoded_page method test_cases (line 283) | def test_cases method test_https_no_openssl (line 316) | def test_https_no_openssl class FakeConnection (line 335) | class FakeConnection < Net::HTTP method initialize (line 338) | def initialize *args method use_ssl= (line 343) | def use_ssl=(v) method ca_file= (line 347) | def ca_file=(ca_file) method test_ssl_with_ca_file (line 352) | def test_ssl_with_ca_file method test_ssl_without_ca_file (line 372) | def test_ssl_without_ca_file method test_make_http_nil (line 394) | def test_make_http_nil method test_make_http_invalid (line 407) | def test_make_http_invalid class BrokenSSLConnection (line 420) | class BrokenSSLConnection method start (line 421) | def start(&block) method test_sslfetchingerror (line 426) | def test_sslfetchingerror class TimeoutConnection (line 439) | class TimeoutConnection method start (line 440) | def start(&block) method test_fetchingerror (line 445) | def test_fetchingerror class TestingException (line 458) | class TestingException < OpenID::FetchingError; end class NoSSLSupportConnection (line 460) | class NoSSLSupportConnection method supports_ssl? (line 461) | def supports_ssl? method start (line 465) | def start method request_get (line 469) | def request_get(*args) method post_connection_check (line 473) | def post_connection_check(hostname) method use_ssl? (line 477) | def use_ssl? class NoUseSSLConnection (line 482) | class NoUseSSLConnection < NoSSLSupportConnection method use_ssl? (line 483) | def use_ssl? method test_post_connection_check_no_support_ssl (line 488) | def test_post_connection_check_no_support_ssl method test_post_connection_check_no_use_ssl (line 502) | def test_post_connection_check_no_use_ssl class PostConnectionCheckException (line 516) | class PostConnectionCheckException < OpenID::FetchingError; end class UseSSLConnection (line 518) | class UseSSLConnection < NoSSLSupportConnection method use_ssl? (line 519) | def use_ssl? method post_connection_check (line 523) | def post_connection_check(hostname) method test_post_connection_check (line 528) | def test_post_connection_check class DefaultFetcherTest (line 547) | class DefaultFetcherTest < Minitest::Test method setup (line 548) | def setup method test_default_fetcher (line 552) | def test_default_fetcher class ProxyTest (line 567) | class ProxyTest < Minitest::Test method test_proxy_unreachable (line 568) | def test_proxy_unreachable method test_proxy_env (line 585) | def test_proxy_env FILE: test/test_filters.rb type OpenID (line 7) | module OpenID class BasicServiceEndpointTest (line 8) | class BasicServiceEndpointTest < Minitest::Test method test_match_types (line 9) | def test_match_types method test_from_basic_service_endpoint (line 30) | def test_from_basic_service_endpoint class TransformFilterMakerTest (line 42) | class TransformFilterMakerTest < Minitest::Test method make_service_element (line 43) | def make_service_element(types, uris) method test_get_service_endpoints (line 53) | def test_get_service_endpoints method test_empty_transform_filter (line 75) | def test_empty_transform_filter method test_nil_filter (line 82) | def test_nil_filter method test_identity_filter (line 90) | def test_identity_filter method test_return_different_endpoint (line 99) | def test_return_different_endpoint method test_multiple_filters (line 109) | def test_multiple_filters class BogusServiceEndpointExtractor (line 136) | class BogusServiceEndpointExtractor method initialize (line 137) | def initialize(data) method get_service_endpoints (line 141) | def get_service_endpoints(yadis_url, service_element) class CompoundFilterTest (line 146) | class CompoundFilterTest < Minitest::Test method test_get_service_endpoints (line 147) | def test_get_service_endpoints class MakeFilterTest (line 162) | class MakeFilterTest < Minitest::Test method test_parts_nil (line 163) | def test_parts_nil method test_parts_array (line 168) | def test_parts_array method test_parts_single (line 178) | def test_parts_single class MakeCompoundFilterTest (line 185) | class MakeCompoundFilterTest < Minitest::Test method test_no_filters (line 186) | def test_no_filters method test_single_transform_filter (line 191) | def test_single_transform_filter method test_single_endpoint (line 196) | def test_single_endpoint method test_single_proc (line 207) | def test_single_proc method test_multiple_filters_same_type (line 218) | def test_multiple_filters_same_type method test_multiple_filters_different_type (line 230) | def test_multiple_filters_different_type method test_filter_type_error (line 250) | def test_filter_type_error FILE: test/test_idres.rb type OpenID (line 9) | module OpenID class Consumer (line 10) | class Consumer class IdResHandler (line 11) | class IdResHandler class IdResHandler (line 16) | class IdResHandler < OpenID::Consumer::IdResHandler method id_res (line 17) | def id_res class CheckForFieldsTest (line 21) | class CheckForFieldsTest < Minitest::Test method mkMsg (line 33) | def mkMsg(ns, fields, signed_fields) method test_112 (line 105) | def test_112 method test_no_signed_list (line 134) | def test_no_signed_list method test_success_openid1 (line 142) | def test_success_openid1 method test_success_openid1_1 (line 148) | def test_success_openid1_1 class ReturnToArgsTest (line 155) | class ReturnToArgsTest < Minitest::Test method check_return_to_args (line 158) | def check_return_to_args(query) method assert_bad_args (line 167) | def assert_bad_args(msg, query) method test_return_to_args_okay (line 173) | def test_return_to_args_okay method test_unexpected_arg_okay (line 181) | def test_unexpected_arg_okay method test_return_to_mismatch (line 189) | def test_return_to_mismatch class ReturnToVerifyTest (line 203) | class ReturnToVerifyTest < Minitest::Test method test_bad_return_to (line 204) | def test_bad_return_to method test_good_return_to (line 233) | def test_good_return_to class DummyEndpoint (line 252) | class DummyEndpoint method initialize (line 254) | def initialize(server_url) class CheckSigTest (line 259) | class CheckSigTest < Minitest::Test method setup (line 263) | def setup method call_idres_method (line 280) | def call_idres_method(method_name) method call_check_sig (line 287) | def call_check_sig(&proc) method no_check_auth (line 291) | def no_check_auth(idres) method test_sign_good (line 295) | def test_sign_good method test_bad_sig (line 299) | def test_bad_sig method test_check_auth_ok (line 306) | def test_check_auth_ok method test_check_auth_ok_no_store (line 317) | def test_check_auth_ok_no_store method test_expired_assoc (line 328) | def test_expired_assoc method call_check_auth (line 336) | def call_check_auth(&proc) method test_check_auth_create_fail (line 342) | def test_check_auth_create_fail method test_check_auth_okay (line 352) | def test_check_auth_okay method test_check_auth_process_fail (line 372) | def test_check_auth_process_fail method test_create_check_auth_request_success (line 407) | def test_create_check_auth_request_success class CheckAuthResponseTest (line 416) | class CheckAuthResponseTest < Minitest::Test method setup (line 420) | def setup method call_process (line 431) | def call_process method test_valid (line 435) | def test_valid method test_invalid (line 439) | def test_invalid method test_valid_invalidate (line 448) | def test_valid_invalidate method test_invalid_invalidate (line 453) | def test_invalid_invalidate method test_invalidate_no_store (line 465) | def test_invalidate_no_store class NonceTest (line 475) | class NonceTest < Minitest::Test method setup (line 479) | def setup method call_check_nonce (line 492) | def call_check_nonce(post_args, succeed=false) method test_openid1_success (line 501) | def test_openid1_success method test_openid1_missing (line 510) | def test_openid1_missing method test_openid2_ignore_rp_nonce (line 519) | def test_openid2_ignore_rp_nonce method test_openid2_success (line 526) | def test_openid2_success method test_openid1_ignore_response_nonce (line 531) | def test_openid1_ignore_response_nonce method test_no_store (line 542) | def test_no_store method test_already_used (line 547) | def test_already_used method test_malformed_nonce (line 553) | def test_malformed_nonce class DiscoveryVerificationTest (line 560) | class DiscoveryVerificationTest < Minitest::Test method setup (line 564) | def setup method call_verify (line 568) | def call_verify(msg_args) method call_verify_modify (line 572) | def call_verify_modify(msg_args) method assert_verify_protocol_error (line 581) | def assert_verify_protocol_error(error_prefix, openid_args) method test_openid1_no_local_id (line 585) | def test_openid1_no_local_id method test_openid1_no_endpoint (line 591) | def test_openid1_no_endpoint method test_openid1_fallback_1_0 (line 598) | def test_openid1_fallback_1_0 method test_openid2_no_op_endpoint (line 633) | def test_openid2_no_op_endpoint method test_openid2_local_id_no_claimed (line 640) | def test_openid2_local_id_no_claimed method test_openid2_no_local_id_claimed (line 647) | def test_openid2_no_local_id_claimed method test_openid2_no_identifiers (line 657) | def test_openid2_no_identifiers method test_openid2_no_endpoint_does_disco (line 668) | def test_openid2_no_endpoint_does_disco method test_openid2_mismatched_does_disco (line 686) | def test_openid2_mismatched_does_disco method test_verify_discovery_single_claimed_id_mismatch (line 707) | def test_verify_discovery_single_claimed_id_mismatch method test_openid1_1_verify_discovery_single_no_server_url (line 723) | def test_openid1_1_verify_discovery_single_no_server_url method test_openid2_use_pre_discovered (line 738) | def test_openid2_use_pre_discovered method test_openid2_use_pre_discovered_wrong_type (line 754) | def test_openid2_use_pre_discovered_wrong_type method test_openid1_use_pre_discovered (line 787) | def test_openid1_use_pre_discovered method test_openid1_use_pre_discovered_wrong_type (line 801) | def test_openid1_use_pre_discovered_wrong_type method test_openid2_fragment (line 822) | def test_openid2_fragment method test_endpoint_without_local_id (line 844) | def test_endpoint_without_local_id class IdResTopLevelTest (line 862) | class IdResTopLevelTest < Minitest::Test method test_id_res (line 863) | def test_id_res class DiscoverAndVerifyTest (line 906) | class DiscoverAndVerifyTest < Minitest::Test method test_no_services (line 911) | def test_no_services class VerifyDiscoveredServicesTest (line 930) | class VerifyDiscoveredServicesTest < Minitest::Test method test_no_services (line 934) | def test_no_services FILE: test/test_kvform.rb class KVFormTests (line 8) | class KVFormTests < Minitest::Test method test_kvdict (line 11) | def test_kvdict method _run_kvdictTest (line 48) | def _run_kvdictTest(case_) method test_kvseq (line 80) | def test_kvseq method _cleanSeq (line 104) | def _cleanSeq(seq) method _run_kvseqTest (line 110) | def _run_kvseqTest(case_) method test_kvexc (line 138) | def test_kvexc method _run_kvexcTest (line 151) | def _run_kvexcTest(case_) method test_convert (line 159) | def test_convert FILE: test/test_kvpost.rb type OpenID (line 7) | module OpenID class KVPostTestCase (line 8) | class KVPostTestCase < Minitest::Test method mk_resp (line 11) | def mk_resp(status, resp_hash) method test_msg_from_http_resp_success (line 15) | def test_msg_from_http_resp_success method test_400 (line 21) | def test_400 method test_500 (line 36) | def test_500 method make_kv_post_with_response (line 45) | def make_kv_post_with_response(status, args) method test_make_kv_post (line 58) | def test_make_kv_post FILE: test/test_linkparse.rb class LinkParseTestCase (line 5) | class LinkParseTestCase < Minitest::Test method attr_cmp (line 8) | def attr_cmp(expected, found) method test_attrcmp (line 36) | def test_attrcmp method test_linkparse (line 56) | def test_linkparse FILE: test/test_message.rb type OpenID (line 7) | module OpenID type GetArgsMixin (line 8) | module GetArgsMixin function get_arg_tests (line 12) | def get_arg_tests(ns, key, expected=nil) class EmptyMessageTestCase (line 29) | class EmptyMessageTestCase < Minitest::Test method setup (line 32) | def setup method test_get_aliased_arg_no_default (line 36) | def test_get_aliased_arg_no_default method test_to_post_args (line 48) | def test_to_post_args method test_to_args (line 52) | def test_to_args method test_to_kvform (line 56) | def test_to_kvform method test_from_kvform (line 60) | def test_from_kvform method test_to_url_encoded (line 68) | def test_to_url_encoded method test_to_url (line 72) | def test_to_url method test_get_openid (line 77) | def test_get_openid method test_get_key_openid (line 81) | def test_get_key_openid method test_get_key_bare (line 87) | def test_get_key_bare method test_get_key_ns1 (line 91) | def test_get_key_ns1 method test_get_key_ns2 (line 95) | def test_get_key_ns2 method test_get_key_ns3 (line 99) | def test_get_key_ns3 method test_has_key (line 103) | def test_has_key method test_has_key_bare (line 109) | def test_has_key_bare method test_has_key_ns1 (line 113) | def test_has_key_ns1 method test_has_key_ns2 (line 117) | def test_has_key_ns2 method test_has_key_ns3 (line 121) | def test_has_key_ns3 method test_get_arg (line 125) | def test_get_arg method test_get_arg_bare (line 131) | def test_get_arg_bare method test_get_arg_ns1 (line 135) | def test_get_arg_ns1 method test_get_arg_ns2 (line 139) | def test_get_arg_ns2 method test_get_arg_ns3 (line 143) | def test_get_arg_ns3 method test_get_args (line 147) | def test_get_args method test_get_args_bare (line 153) | def test_get_args_bare method test_get_args_ns1 (line 157) | def test_get_args_ns1 method test_get_args_ns2 (line 161) | def test_get_args_ns2 method test_get_args_ns3 (line 165) | def test_get_args_ns3 method test_update_args (line 169) | def test_update_args method _test_update_args_ns (line 175) | def _test_update_args_ns(ns) method test_update_args_bare (line 185) | def test_update_args_bare method test_update_args_ns1 (line 188) | def test_update_args_ns1 method test_update_args_ns2 (line 191) | def test_update_args_ns2 method test_update_args_ns3 (line 194) | def test_update_args_ns3 method test_set_arg (line 198) | def test_set_arg method _test_set_arg_ns (line 204) | def _test_set_arg_ns(ns) method test_set_arg_bare (line 212) | def test_set_arg_bare method test_set_arg_ns1 (line 215) | def test_set_arg_ns1 method test_set_arg_ns2 (line 218) | def test_set_arg_ns2 method test_set_arg_ns3 (line 221) | def test_set_arg_ns3 method test_del_arg (line 225) | def test_del_arg method _test_del_arg_ns (line 231) | def _test_del_arg_ns(ns) method test_del_arg_bare (line 236) | def test_del_arg_bare method test_del_arg_ns1 (line 239) | def test_del_arg_ns1 method test_del_arg_ns2 (line 242) | def test_del_arg_ns2 method test_del_arg_ns3 (line 245) | def test_del_arg_ns3 method test_isOpenID1 (line 249) | def test_isOpenID1 method test_isOpenID2 (line 253) | def test_isOpenID2 method test_set_openid_namespace (line 257) | def test_set_openid_namespace class OpenID1MessageTest (line 264) | class OpenID1MessageTest < Minitest::Test method setup (line 267) | def setup method test_has_openid_ns (line 272) | def test_has_openid_ns method test_get_aliased_arg (line 278) | def test_get_aliased_arg method test_get_aliased_arg_ns (line 282) | def test_get_aliased_arg_ns method test_get_aliased_arg_with_ns (line 286) | def test_get_aliased_arg_with_ns method test_get_aliased_arg_with_ns_default (line 299) | def test_get_aliased_arg_with_ns_default method test_to_post_args (line 304) | def test_to_post_args method test_to_post_args_ns (line 310) | def test_to_post_args_ns method test_to_args (line 323) | def test_to_args method test_to_kvform (line 329) | def test_to_kvform method test_to_url_encoded (line 334) | def test_to_url_encoded method test_to_url (line 339) | def test_to_url method test_get_openid (line 350) | def test_get_openid method test_get_key_openid (line 354) | def test_get_key_openid method test_get_key_bare (line 358) | def test_get_key_bare method test_get_key_ns1 (line 362) | def test_get_key_ns1 method test_get_key_ns2 (line 366) | def test_get_key_ns2 method test_get_key_ns3 (line 370) | def test_get_key_ns3 method test_has_key (line 374) | def test_has_key method test_has_key_bare (line 377) | def test_has_key_bare method test_has_key_ns1 (line 380) | def test_has_key_ns1 method test_has_key_ns2 (line 383) | def test_has_key_ns2 method test_has_key_ns3 (line 386) | def test_has_key_ns3 method test_get_arg (line 390) | def test_get_arg method test_get_arg_bare (line 394) | def test_get_arg_bare method test_get_arg_ns (line 398) | def test_get_arg_ns method test_get_arg_ns1 (line 402) | def test_get_arg_ns1 method test_get_arg_ns2 (line 406) | def test_get_arg_ns2 method test_get_arg_ns3 (line 410) | def test_get_arg_ns3 method test_get_args (line 414) | def test_get_args method test_get_args_bare (line 418) | def test_get_args_bare method test_get_args_ns1 (line 421) | def test_get_args_ns1 method test_get_args_ns2 (line 425) | def test_get_args_ns2 method test_get_args_ns3 (line 428) | def test_get_args_ns3 method _test_update_args_ns (line 432) | def _test_update_args_ns(ns, before=nil) method test_update_args (line 447) | def test_update_args method test_update_args_bare (line 450) | def test_update_args_bare method test_update_args_ns1 (line 453) | def test_update_args_ns1 method test_update_args_ns2 (line 456) | def test_update_args_ns2 method test_update_args_ns3 (line 459) | def test_update_args_ns3 method _test_set_arg_ns (line 463) | def _test_set_arg_ns(ns) method test_set_arg (line 471) | def test_set_arg; _test_set_arg_ns(OPENID_NS); end method test_set_arg_bare (line 472) | def test_set_arg_bare; _test_set_arg_ns(BARE_NS); end method test_set_arg_ns1 (line 473) | def test_set_arg_ns1; _test_set_arg_ns(OPENID1_NS); end method test_set_arg_ns2 (line 474) | def test_set_arg_ns2; _test_set_arg_ns(OPENID2_NS); end method test_set_arg_ns3 (line 475) | def test_set_arg_ns3; _test_set_arg_ns('urn:xxx'); end method _test_del_arg_ns (line 477) | def _test_del_arg_ns(ns) method test_del_arg (line 486) | def test_del_arg; _test_del_arg_ns(OPENID_NS); end method test_del_arg_bare (line 487) | def test_del_arg_bare; _test_del_arg_ns(BARE_NS); end method test_del_arg_ns1 (line 488) | def test_del_arg_ns1; _test_del_arg_ns(OPENID1_NS); end method test_del_arg_ns2 (line 489) | def test_del_arg_ns2; _test_del_arg_ns(OPENID2_NS); end method test_del_arg_ns3 (line 490) | def test_del_arg_ns3; _test_del_arg_ns('urn:yyy'); end method test_isOpenID1 (line 492) | def test_isOpenID1 method test_isOpenID2 (line 496) | def test_isOpenID2 method test_equal (line 500) | def test_equal method test_from_openid_args_undefined_ns (line 505) | def test_from_openid_args_undefined_ns method TODOtest_from_kvform (line 513) | def TODOtest_from_kvform method test_initialize_sets_namespace (line 519) | def test_initialize_sets_namespace class OpenID1ExplicitMessageTest (line 525) | class OpenID1ExplicitMessageTest < Minitest::Test method setup (line 528) | def setup method test_to_post_args (line 534) | def test_to_post_args method test_to_post_args_ns (line 542) | def test_to_post_args_ns method test_to_args (line 556) | def test_to_args method test_to_kvform (line 564) | def test_to_kvform method test_to_url_encoded (line 569) | def test_to_url_encoded method test_to_url (line 574) | def test_to_url class OpenID2MessageTest (line 591) | class OpenID2MessageTest < Minitest::Test method setup (line 594) | def setup method test_to_args_fails (line 601) | def test_to_args_fails method test_fix_ns_non_string (line 607) | def test_fix_ns_non_string method test_fix_ns_non_uri (line 614) | def test_fix_ns_non_uri method test_fix_ns_sreg_literal (line 621) | def test_fix_ns_sreg_literal method test_copy (line 628) | def test_copy method test_to_post_args (line 633) | def test_to_post_args method test_to_post_args_ns (line 641) | def test_to_post_args_ns method test_to_args (line 654) | def test_to_args method test_to_kvform (line 662) | def test_to_kvform method _test_urlencoded (line 668) | def _test_urlencoded(s) method test_to_urlencoded (line 680) | def test_to_urlencoded method test_to_url (line 684) | def test_to_url method test_get_openid (line 694) | def test_get_openid method test_get_key_openid (line 698) | def test_get_key_openid method test_get_key_bare (line 702) | def test_get_key_bare method test_get_key_ns1 (line 706) | def test_get_key_ns1 method test_get_key_ns2 (line 710) | def test_get_key_ns2 method test_get_key_ns3 (line 714) | def test_get_key_ns3 method test_has_key_openid (line 718) | def test_has_key_openid method test_has_key_bare (line 722) | def test_has_key_bare method test_has_key_ns1 (line 726) | def test_has_key_ns1 method test_has_key_ns2 (line 730) | def test_has_key_ns2 method test_has_key_ns3 (line 734) | def test_has_key_ns3 method test_get_arg_openid (line 739) | def test_get_arg_openid method test_get_arg_bare (line 743) | def test_get_arg_bare method test_get_arg_ns1 (line 747) | def test_get_arg_ns1 method test_get_arg_ns2 (line 751) | def test_get_arg_ns2 method test_get_arg_ns3 (line 755) | def test_get_arg_ns3 method test_get_args_openid (line 759) | def test_get_args_openid method test_get_args_bare (line 764) | def test_get_args_bare method test_get_args_ns1 (line 769) | def test_get_args_ns1 method test_get_args_ns2 (line 774) | def test_get_args_ns2 method test_get_args_ns3 (line 779) | def test_get_args_ns3 method _test_update_args_ns (line 784) | def _test_update_args_ns(ns, before=nil) method test_update_args_openid (line 795) | def test_update_args_openid method test_update_args_bare (line 799) | def test_update_args_bare method test_update_args_ns1 (line 803) | def test_update_args_ns1 method test_update_args_ns2 (line 807) | def test_update_args_ns2 method test_update_args_ns3 (line 811) | def test_update_args_ns3 method _test_set_arg_ns (line 815) | def _test_set_arg_ns(ns) method test_set_arg_openid (line 823) | def test_set_arg_openid; _test_set_arg_ns(OPENID_NS); end method test_set_arg_bare (line 824) | def test_set_arg_bare; _test_set_arg_ns(BARE_NS); end method test_set_arg_ns1 (line 825) | def test_set_arg_ns1; _test_set_arg_ns(OPENID1_NS); end method test_set_arg_ns2 (line 826) | def test_set_arg_ns2; _test_set_arg_ns(OPENID2_NS); end method test_set_arg_ns3 (line 827) | def test_set_arg_ns3; _test_set_arg_ns('urn:g'); end method test_bad_alias (line 829) | def test_bad_alias method test_from_post_args (line 848) | def test_from_post_args method _test_del_arg_ns (line 853) | def _test_del_arg_ns(ns) method test_del_arg_openid (line 863) | def test_del_arg_openid; _test_del_arg_ns(OPENID_NS); end method test_del_arg_bare (line 864) | def test_del_arg_bare; _test_del_arg_ns(BARE_NS); end method test_del_arg_ns1 (line 865) | def test_del_arg_ns1; _test_del_arg_ns(OPENID1_NS); end method test_del_arg_ns2 (line 866) | def test_del_arg_ns2; _test_del_arg_ns(OPENID2_NS); end method test_del_arg_ns3 (line 867) | def test_del_arg_ns3; _test_del_arg_ns('urn:tofu'); end method test_overwrite_extension_arg (line 869) | def test_overwrite_extension_arg method test_argList (line 881) | def test_argList method test_isOpenID1 (line 887) | def test_isOpenID1 method test_isOpenID2 (line 891) | def test_isOpenID2 class MessageTest (line 896) | class MessageTest < Minitest::Test method setup (line 897) | def setup method _checkForm (line 925) | def _checkForm(html, message_, action_url, method test_toFormMarkup (line 1010) | def test_toFormMarkup method test_overrideMethod (line 1018) | def test_overrideMethod method test_overrideRequired (line 1031) | def test_overrideRequired class NamespaceMapTestCase (line 1047) | class NamespaceMapTestCase < Minitest::Test method test_onealias (line 1049) | def test_onealias method test_iteration (line 1059) | def test_iteration method test_register_default_alias (line 1082) | def test_register_default_alias method test_alias_defined_twice (line 1106) | def test_alias_defined_twice FILE: test/test_nonce.rb type OpenID (line 4) | module OpenID class NonceTestCase (line 5) | class NonceTestCase < Minitest::Test method test_mk_nonce (line 9) | def test_mk_nonce method test_mk_nonce_time (line 15) | def test_mk_nonce_time method test_split (line 22) | def test_split method test_mk_split (line 31) | def test_mk_split method test_bad_split (line 40) | def test_bad_split method test_check_timestamp (line 55) | def test_check_timestamp FILE: test/test_oauth.rb type OpenID (line 8) | module OpenID type OAuthTest (line 9) | module OAuthTest class OAuthRequestTestCase (line 10) | class OAuthRequestTestCase < Minitest::Test method setup (line 11) | def setup method test_construct (line 15) | def test_construct method test_add_consumer (line 25) | def test_add_consumer method test_add_scope (line 30) | def test_add_scope method test_get_extension_args (line 35) | def test_get_extension_args method test_parse_extension_args (line 43) | def test_parse_extension_args method test_parse_extension_args_empty (line 50) | def test_parse_extension_args_empty method test_from_openid_request (line 56) | def test_from_openid_request method test_from_openid_request_no_oauth (line 71) | def test_from_openid_request_no_oauth class DummySuccessResponse (line 81) | class DummySuccessResponse method initialize (line 84) | def initialize(message, signed_stuff) method get_signed_ns (line 89) | def get_signed_ns(ns_uri) class OAuthResponseTestCase (line 95) | class OAuthResponseTestCase < Minitest::Test method setup (line 96) | def setup method test_construct (line 100) | def test_construct method test_add_request_token (line 109) | def test_add_request_token method test_add_scope (line 114) | def test_add_scope method test_get_extension_args (line 119) | def test_get_extension_args method test_parse_extension_args (line 127) | def test_parse_extension_args method test_parse_extension_args_empty (line 134) | def test_parse_extension_args_empty method test_from_success_response (line 140) | def test_from_success_response method test_from_success_response_unsigned (line 159) | def test_from_success_response_unsigned FILE: test/test_openid_yadis.rb type OpenID (line 5) | module OpenID function mkXRDS (line 18) | def self.mkXRDS(services) function mkService (line 22) | def self.mkService(uris=nil, type_uris=nil, local_id=nil, dent=" ... function subsets (line 68) | def OpenID.subsets(l) class OpenIDYadisTest (line 91) | class OpenIDYadisTest method initialize (line 92) | def initialize(uris, type_uris, local_id) method runTest (line 107) | def runTest(testcase) class OpenIDYadisTests (line 146) | class OpenIDYadisTests < Minitest::Test method test_openid_yadis (line 147) | def test_openid_yadis FILE: test/test_pape.rb type OpenID (line 7) | module OpenID type PAPETest (line 8) | module PAPETest class PapeRequestTestCase (line 9) | class PapeRequestTestCase < Minitest::Test method setup (line 10) | def setup method test_construct (line 14) | def test_construct method test_add_policy_uri (line 24) | def test_add_policy_uri method test_get_extension_args (line 36) | def test_get_extension_args method test_parse_extension_args (line 46) | def test_parse_extension_args method test_parse_extension_args_empty (line 54) | def test_parse_extension_args_empty method test_from_openid_request (line 60) | def test_from_openid_request method test_from_openid_request_no_pape (line 75) | def test_from_openid_request_no_pape method test_preferred_types (line 83) | def test_preferred_types class DummySuccessResponse (line 92) | class DummySuccessResponse method initialize (line 95) | def initialize(message, signed_stuff) method get_signed_ns (line 100) | def get_signed_ns(ns_uri) class PapeResponseTestCase (line 106) | class PapeResponseTestCase < Minitest::Test method setup (line 107) | def setup method test_construct (line 111) | def test_construct method test_add_policy_uri (line 123) | def test_add_policy_uri method test_get_extension_args (line 135) | def test_get_extension_args method test_get_extension_args_error_auth_age (line 147) | def test_get_extension_args_error_auth_age method test_get_extension_args_error_nist_auth_level (line 152) | def test_get_extension_args_error_nist_auth_level method test_parse_extension_args (line 161) | def test_parse_extension_args method test_parse_extension_args_empty (line 169) | def test_parse_extension_args_empty method test_parse_extension_args_strict_bogus1 (line 175) | def test_parse_extension_args_strict_bogus1 method test_parse_extension_args_strict_bogus2 (line 183) | def test_parse_extension_args_strict_bogus2 method test_parse_extension_args_strict_good (line 192) | def test_parse_extension_args_strict_good method test_parse_extension_args_nostrict_bogus (line 202) | def test_parse_extension_args_nostrict_bogus method test_from_success_response (line 213) | def test_from_success_response method test_from_success_response_unsigned (line 232) | def test_from_success_response_unsigned FILE: test/test_parsehtml.rb type OpenID (line 5) | module OpenID class ParseHTMLTestCase (line 6) | class ParseHTMLTestCase < Minitest::Test method test_parsehtml (line 9) | def test_parsehtml class TC_TestHTMLTokenizer (line 30) | class TC_TestHTMLTokenizer < Minitest::Test method test_bad_link (line 31) | def test_bad_link method test_namespace (line 36) | def test_namespace method test_comment (line 41) | def test_comment method test_full (line 48) | def test_full FILE: test/test_responses.rb type OpenID (line 5) | module OpenID class Consumer (line 6) | class Consumer type TestResponses (line 7) | module TestResponses class TestSuccessResponse (line 8) | class TestSuccessResponse < Minitest::Test method setup (line 9) | def setup method test_extension_response (line 14) | def test_extension_response method test_extension_response_signed (line 32) | def test_extension_response_signed FILE: test/test_server.rb type OpenID (line 21) | module OpenID class CatchLogs (line 26) | class CatchLogs method catchlogs_setup (line 27) | def catchlogs_setup method got_log_message (line 33) | def got_log_message(message) method teardown (line 37) | def teardown class TestProtocolError (line 42) | class TestProtocolError < Minitest::Test method test_browserWithReturnTo (line 43) | def test_browserWithReturnTo method test_browserWithReturnTo_OpenID2_GET (line 64) | def test_browserWithReturnTo_OpenID2_GET method test_browserWithReturnTo_OpenID2_POST (line 88) | def test_browserWithReturnTo_OpenID2_POST method test_browserWithReturnTo_OpenID1_exceeds_limit (line 106) | def test_browserWithReturnTo_OpenID1_exceeds_limit method test_noReturnTo (line 129) | def test_noReturnTo method test_no_message (line 142) | def test_no_message method test_which_encoding_no_message (line 148) | def test_which_encoding_no_message class TestDecode (line 154) | class TestDecode < Minitest::Test method setup (line 155) | def setup method test_none (line 167) | def test_none method test_irrelevant (line 173) | def test_irrelevant method test_bad (line 183) | def test_bad method test_dictOfLists (line 193) | def test_dictOfLists method test_checkidImmediate (line 210) | def test_checkidImmediate method test_checkidImmediate_constructor (line 230) | def test_checkidImmediate_constructor method test_checkid_missing_return_to_and_trust_root (line 237) | def test_checkid_missing_return_to_and_trust_root method test_checkid_id_select (line 251) | def test_checkid_id_select method test_checkid_not_id_select (line 266) | def test_checkid_not_id_select method test_checkidSetup (line 290) | def test_checkidSetup method test_checkidSetupOpenID2 (line 307) | def test_checkidSetupOpenID2 method test_checkidSetupNoClaimedIDOpenID2 (line 327) | def test_checkidSetupNoClaimedIDOpenID2 method test_checkidSetupNoIdentityOpenID2 (line 341) | def test_checkidSetupNoIdentityOpenID2 method test_checkidSetupNoReturnOpenID1 (line 358) | def test_checkidSetupNoReturnOpenID1 method test_checkidSetupNoReturnOpenID2 (line 372) | def test_checkidSetupNoReturnOpenID2 method test_checkidSetupRealmRequiredOpenID2 (line 401) | def test_checkidSetupRealmRequiredOpenID2 method test_checkidSetupBadReturn (line 416) | def test_checkidSetupBadReturn method test_checkidSetupUntrustedReturn (line 432) | def test_checkidSetupUntrustedReturn method test_checkidSetupUntrustedReturn_Constructor (line 449) | def test_checkidSetupUntrustedReturn_Constructor method test_checkidSetupMalformedReturnURL_Constructor (line 457) | def test_checkidSetupMalformedReturnURL_Constructor method test_checkAuth (line 465) | def test_checkAuth method test_checkAuthMissingSignature (line 482) | def test_checkAuthMissingSignature method test_checkAuthAndInvalidate (line 496) | def test_checkAuthAndInvalidate method test_associateDH (line 513) | def test_associateDH method test_associateDHMissingKey (line 527) | def test_associateDHMissingKey method test_associateDHpubKeyNotB64 (line 539) | def test_associateDHpubKeyNotB64 method test_associateDHModGen (line 550) | def test_associateDHModGen method test_associateDHCorruptModGen (line 570) | def test_associateDHCorruptModGen method test_associateDHMissingGen (line 585) | def test_associateDHMissingGen method test_associateDHMissingMod (line 597) | def test_associateDHMissingMod method test_associateWeirdSession (line 622) | def test_associateWeirdSession method test_associatePlain (line 633) | def test_associatePlain method test_nomode (line 644) | def test_nomode method test_invalidns (line 654) | def test_invalidns class BogusEncoder (line 666) | class BogusEncoder < Server::Encoder method encode (line 667) | def encode(response) class BogusDecoder (line 672) | class BogusDecoder < Server::Decoder method decode (line 673) | def decode(query) class TestEncode (line 678) | class TestEncode < Minitest::Test method setup (line 679) | def setup method test_id_res_OpenID2_GET (line 687) | def test_id_res_OpenID2_GET method test_id_res_OpenID2_POST (line 713) | def test_id_res_OpenID2_POST method test_to_form_markup (line 740) | def test_to_form_markup method test_to_html (line 761) | def test_to_html method test_id_res_OpenID1_exceeds_limit (line 782) | def test_id_res_OpenID1_exceeds_limit method test_id_res (line 810) | def test_id_res method test_cancel (line 838) | def test_cancel method test_cancel_to_form (line 855) | def test_cancel_to_form method test_assocReply (line 871) | def test_assocReply method test_checkauthReply (line 886) | def test_checkauthReply method test_unencodableError (line 904) | def test_unencodableError method test_encodableError (line 914) | def test_encodableError class TestSigningEncode (line 927) | class TestSigningEncode < Minitest::Test method setup (line 928) | def setup method test_idres (line 952) | def test_idres method test_idresDumb (line 970) | def test_idresDumb method test_forgotStore (line 982) | def test_forgotStore method test_cancel (line 989) | def test_cancel method test_assocReply (line 1007) | def test_assocReply method test_alreadySigned (line 1020) | def test_alreadySigned class TestCheckID (line 1028) | class TestCheckID < Minitest::Test method setup (line 1029) | def setup method test_trustRootInvalid (line 1042) | def test_trustRootInvalid method test_trustRootInvalid_modified (line 1048) | def test_trustRootInvalid_modified method test_trustRootvalid_absent_trust_root (line 1060) | def test_trustRootvalid_absent_trust_root method test_trustRootValid (line 1065) | def test_trustRootValid method test_trustRootValidNoReturnTo (line 1071) | def test_trustRootValidNoReturnTo method test_returnToVerified_callsVerify (line 1082) | def test_returnToVerified_callsVerify method _expectAnswer (line 1128) | def _expectAnswer(answer, identity=nil, claimed_id=nil) method test_answerAllow (line 1159) | def test_answerAllow method test_answerAllowDelegatedIdentity (line 1169) | def test_answerAllowDelegatedIdentity method test_answerAllowWithoutIdentityReally (line 1176) | def test_answerAllowWithoutIdentityReally method test_answerAllowAnonymousFail (line 1183) | def test_answerAllowAnonymousFail method test_answerAllowWithIdentity (line 1192) | def test_answerAllowWithIdentity method test_answerAllowWithNoIdentity (line 1199) | def test_answerAllowWithNoIdentity method test_immediate_openid1_no_identity (line 1206) | def test_immediate_openid1_no_identity method test_checkid_setup_openid1_no_identity (line 1214) | def test_checkid_setup_openid1_no_identity method test_immediate_openid1_no_server_url (line 1222) | def test_immediate_openid1_no_server_url method test_immediate_encode_to_url (line 1233) | def test_immediate_encode_to_url method test_answerAllowWithDelegatedIdentityOpenID2 (line 1257) | def test_answerAllowWithDelegatedIdentityOpenID2 method test_answerAllowWithDelegatedIdentityOpenID1 (line 1268) | def test_answerAllowWithDelegatedIdentityOpenID1 method test_answerAllowWithAnotherIdentity (line 1280) | def test_answerAllowWithAnotherIdentity method test_answerAllowNoIdentityOpenID1 (line 1288) | def test_answerAllowNoIdentityOpenID1 method test_answerAllowForgotEndpoint (line 1296) | def test_answerAllowForgotEndpoint method test_checkIDWithNoIdentityOpenID1 (line 1303) | def test_checkIDWithNoIdentityOpenID1 method test_fromMessageClaimedIDWithoutIdentityOpenID2 (line 1315) | def test_fromMessageClaimedIDWithoutIdentityOpenID2 method test_fromMessageIdentityWithoutClaimedIDOpenID2 (line 1326) | def test_fromMessageIdentityWithoutClaimedIDOpenID2 method test_fromMessageWithEmptyTrustRoot (line 1337) | def test_fromMessageWithEmptyTrustRoot method test_trustRootOpenID1 (line 1352) | def test_trustRootOpenID1 method test_trustRootOpenID2 (line 1367) | def test_trustRootOpenID2 method test_answerAllowNoTrustRoot (line 1383) | def test_answerAllowNoTrustRoot method test_answerImmediateDenyOpenID2 (line 1390) | def test_answerImmediateDenyOpenID2 method test_answerImmediateDenyOpenID1 (line 1410) | def test_answerImmediateDenyOpenID1 method test_answerSetupDeny (line 1431) | def test_answerSetupDeny method test_encodeToURL (line 1438) | def test_encodeToURL method test_getCancelURL (line 1457) | def test_getCancelURL method test_getCancelURLimmed (line 1466) | def test_getCancelURLimmed method test_fromMessageWithoutTrustRoot (line 1474) | def test_fromMessageWithoutTrustRoot method test_fromMessageWithoutTrustRootOrReturnTo (line 1487) | def test_fromMessageWithoutTrustRootOrReturnTo class TestCheckIDExtension (line 1500) | class TestCheckIDExtension < Minitest::Test method setup (line 1502) | def setup method test_addField (line 1518) | def test_addField method test_addFields (line 1530) | def test_addFields class MockSignatory (line 1543) | class MockSignatory method initialize (line 1546) | def initialize(assoc) method verify (line 1551) | def verify(assoc_handle, message) method get_association (line 1560) | def get_association(assoc_handle, dumb) method invalidate (line 1570) | def invalidate(assoc_handle, dumb) class TestCheckAuth (line 1577) | class TestCheckAuth < Minitest::Test method setup (line 1578) | def setup method test_to_s (line 1592) | def test_to_s method test_valid (line 1596) | def test_valid method test_invalid (line 1603) | def test_invalid method test_replay (line 1611) | def test_replay method test_invalidatehandle (line 1629) | def test_invalidatehandle method test_invalidatehandleNo (line 1638) | def test_invalidatehandleNo class TestAssociate (line 1647) | class TestAssociate < Minitest::Test method setup (line 1651) | def setup method test_dhSHA1 (line 1657) | def test_dhSHA1 method test_dhSHA256 (line 1681) | def test_dhSHA256 method test_protoError256 (line 1705) | def test_protoError256 method test_protoError (line 1729) | def test_protoError method test_protoErrorFields (line 1754) | def test_protoErrorFields method failUnlessExpiresInMatches (line 1787) | def failUnlessExpiresInMatches(msg, expected_expires_in) method test_plaintext (line 1802) | def test_plaintext method test_plaintext_v2 (line 1820) | def test_plaintext_v2 method test_plaintext256 (line 1852) | def test_plaintext256 method test_unsupportedPrefer (line 1870) | def test_unsupportedPrefer method test_unsupported (line 1889) | def test_unsupported method test_openid1_unsupported_explode (line 1904) | def test_openid1_unsupported_explode class UnhandledError (line 1915) | class UnhandledError < Exception class TestServer (line 1918) | class TestServer < Minitest::Test method setup (line 1921) | def setup method test_failed_dispatch (line 1927) | def test_failed_dispatch method test_decode_request (line 1936) | def test_decode_request method test_encode_response (line 1941) | def test_encode_response method test_dispatch (line 1946) | def test_dispatch method test_associate (line 1960) | def test_associate method test_associate2 (line 1967) | def test_associate2 method test_associate3 (line 1991) | def test_associate3 method test_associate4 (line 2016) | def test_associate4 method test_no_encryption_openid1 (line 2036) | def test_no_encryption_openid1 method test_missingSessionTypeOpenID2 (line 2048) | def test_missingSessionTypeOpenID2 method test_checkAuth (line 2059) | def test_checkAuth class TestingRequest (line 2070) | class TestingRequest < Server::OpenIDRequest class TestSignatory (line 2074) | class TestSignatory < Minitest::Test method setup (line 2077) | def setup method test_get_association_nil (line 2085) | def test_get_association_nil method test_sign (line 2091) | def test_sign method test_signDumb (line 2116) | def test_signDumb method test_signExpired (line 2138) | def test_signExpired method test_signInvalidHandle (line 2196) | def test_signInvalidHandle method test_verify (line 2229) | def test_verify method test_verifyBadSig (line 2249) | def test_verifyBadSig method test_verifyBadHandle (line 2269) | def test_verifyBadHandle method test_verifyAssocMismatch (line 2285) | def test_verifyAssocMismatch method test_getAssoc (line 2307) | def test_getAssoc method test_getAssocExpired (line 2314) | def test_getAssocExpired method test_getAssocInvalid (line 2323) | def test_getAssocInvalid method test_getAssocDumbVsNormal (line 2331) | def test_getAssocDumbVsNormal method test_getAssocNormalVsDumb (line 2340) | def test_getAssocNormalVsDumb method test_createAssociation (line 2354) | def test_createAssociation method makeAssoc (line 2362) | def makeAssoc(dumb, lifetime=60) method test_invalidate (line 2374) | def test_invalidate class RunthroughTestCase (line 2393) | class RunthroughTestCase < Minitest::Test method setup (line 2394) | def setup method test_openid1_assoc_checkid (line 2399) | def test_openid1_assoc_checkid FILE: test/test_sreg.rb type OpenID (line 6) | module OpenID type SReg (line 7) | module SReg type SRegTest (line 8) | module SRegTest class SRegTest (line 20) | class SRegTest < Minitest::Test method test_is11 (line 22) | def test_is11 method test_check_field_name (line 26) | def test_check_field_name method test_unsupported (line 34) | def test_unsupported method test_supported_1_1 (line 40) | def test_supported_1_1 method test_supported_1_0 (line 46) | def test_supported_1_0 class FakeEndpoint (line 54) | class FakeEndpoint < Object method initialize (line 56) | def initialize(supported) method uses_extension (line 61) | def uses_extension(namespace_uri) class FakeMessage (line 67) | class FakeMessage < Object method initialize (line 70) | def initialize method is_openid1 (line 75) | def is_openid1 class GetNSTest (line 81) | class GetNSTest < Minitest::Test method setup (line 82) | def setup method test_openid2_empty (line 86) | def test_openid2_empty method test_openid1_empty (line 92) | def test_openid1_empty method test_openid1defined_1_0 (line 99) | def test_openid1defined_1_0 method test_openid1_defined_1_0_override_alias (line 106) | def test_openid1_defined_1_0_override_alias method test_openid1_defined_badly (line 121) | def test_openid1_defined_badly method test_openid2_defined_badly (line 127) | def test_openid2_defined_badly method test_openid2_defined_1_0 (line 132) | def test_openid2_defined_1_0 method test_openid1_sreg_ns_from_args (line 138) | def test_openid1_sreg_ns_from_args class SRegRequestTest (line 152) | class SRegRequestTest < Minitest::Test method test_construct_empty (line 153) | def test_construct_empty method test_construct_fields (line 161) | def test_construct_fields method test_construct_bad_fields (line 169) | def test_construct_bad_fields method test_from_openid_request_message_copied (line 173) | def test_from_openid_request_message_copied method test_from_openid_request_ns_1_0 (line 184) | def test_from_openid_request_ns_1_0 method test_from_openid_request_no_sreg (line 194) | def test_from_openid_request_no_sreg method test_parse_extension_args_empty (line 202) | def test_parse_extension_args_empty method test_parse_extension_args_extra_ignored (line 207) | def test_parse_extension_args_extra_ignored method test_parse_extension_args_non_strict (line 212) | def test_parse_extension_args_non_strict method test_parse_extension_args_strict (line 218) | def test_parse_extension_args_strict method test_parse_extension_args_policy (line 225) | def test_parse_extension_args_policy method test_parse_extension_args_required_empty (line 231) | def test_parse_extension_args_required_empty method test_parse_extension_args_optional_empty (line 237) | def test_parse_extension_args_optional_empty method test_parse_extension_args_optional_single (line 243) | def test_parse_extension_args_optional_single method test_parse_extension_args_optional_list (line 249) | def test_parse_extension_args_optional_list method test_parse_extension_args_optional_list_bad_nonstrict (line 255) | def test_parse_extension_args_optional_list_bad_nonstrict method test_parse_extension_args_optional_list_bad_strict (line 261) | def test_parse_extension_args_optional_list_bad_strict method test_parse_extension_args_both_nonstrict (line 268) | def test_parse_extension_args_both_nonstrict method test_parse_extension_args_both_strict (line 275) | def test_parse_extension_args_both_strict method test_parse_extension_args_both_list (line 282) | def test_parse_extension_args_both_list method test_all_requested_fields (line 289) | def test_all_requested_fields method test_were_fields_requested (line 299) | def test_were_fields_requested method test_member (line 306) | def test_member method test_request_field_bogus (line 318) | def test_request_field_bogus method test_request_fields_type (line 342) | def test_request_fields_type method test_request_fields (line 347) | def test_request_fields method test_get_extension_args (line 377) | def test_get_extension_args class DummySuccessResponse (line 404) | class DummySuccessResponse method initialize (line 406) | def initialize(message, signed_stuff) method get_signed_ns (line 410) | def get_signed_ns(ns_uri) class SRegResponseTest (line 416) | class SRegResponseTest < Minitest::Test method test_construct (line 417) | def test_construct method test_from_success_response_signed (line 426) | def test_from_success_response_signed method test_from_success_response_unsigned (line 435) | def test_from_success_response_unsigned class SendFieldsTest (line 447) | class SendFieldsTest < Minitest::Test method test_send_fields (line 449) | def test_send_fields FILE: test/test_stores.rb type OpenID (line 10) | module OpenID type Store (line 11) | module Store type StoreTestCase (line 12) | module StoreTestCase function _gen_nonce (line 16) | def _gen_nonce function _gen_handle (line 20) | def _gen_handle(n) function _gen_secret (line 24) | def _gen_secret(n, chars=nil) function _gen_assoc (line 28) | def _gen_assoc(issued, lifetime=600) function _check_retrieve (line 35) | def _check_retrieve(url, handle=nil, expected=nil) function _check_remove (line 47) | def _check_remove(url, handle, expected) function test_store (line 52) | def test_store function test_assoc_cleanup (line 142) | def test_assoc_cleanup function _check_use_nonce (line 158) | def _check_use_nonce(nonce, expected, server_url, msg='') function server_url (line 164) | def server_url function test_nonce (line 168) | def test_nonce function test_nonce_cleanup (line 183) | def test_nonce_cleanup class FileStoreTestCase (line 217) | class FileStoreTestCase < Minitest::Test method setup (line 220) | def setup method teardown (line 225) | def teardown class MemoryStoreTestCase (line 230) | class MemoryStoreTestCase < Minitest::Test method setup (line 233) | def setup class MemcacheStoreTestCase (line 242) | class MemcacheStoreTestCase < Minitest::Test method setup (line 244) | def setup method test_nonce_cleanup (line 250) | def test_nonce_cleanup method test_assoc_cleanup (line 253) | def test_assoc_cleanup class AbstractStoreTestCase (line 258) | class AbstractStoreTestCase < Minitest::Test method test_abstract_class (line 259) | def test_abstract_class FILE: test/test_trustroot.rb class TrustRootTest (line 5) | class TrustRootTest < Minitest::Test method _test_sanity (line 8) | def _test_sanity(case_, sanity, desc) method _test_match (line 22) | def _test_match(trust_root, url, expected_match) method test_trustroots (line 34) | def test_trustroots method getTests (line 53) | def getTests(grps, head, dat) method test_return_to_matches (line 73) | def test_return_to_matches method test_build_discovery_url (line 97) | def test_build_discovery_url FILE: test/test_ui.rb type OpenID (line 6) | module OpenID type UITest (line 7) | module UITest class UIRequestTestCase (line 8) | class UIRequestTestCase < Minitest::Test method setup (line 10) | def setup method test_construct (line 14) | def test_construct method test_add_mode (line 26) | def test_add_mode method test_add_icon (line 31) | def test_add_icon method test_add_lang (line 36) | def test_add_lang method test_get_extension_args (line 41) | def test_get_extension_args method test_parse_extension_args (line 51) | def test_parse_extension_args method test_parse_extension_args_empty (line 59) | def test_parse_extension_args_empty method test_from_openid_request (line 66) | def test_from_openid_request method test_from_openid_request_no_ui_params (line 83) | def test_from_openid_request_no_ui_params FILE: test/test_urinorm.rb class URINormTestCase (line 5) | class URINormTestCase < Minitest::Test method test_normalize (line 8) | def test_normalize FILE: test/test_util.rb type OpenID (line 5) | module OpenID class UtilTestCase (line 6) | class UtilTestCase < Minitest::Test method test_base64 (line 8) | def test_base64 method test_base64_valid (line 25) | def test_base64_valid method test_base64_invalid (line 39) | def test_base64_invalid method test_append_args (line 53) | def test_append_args() method test_parse_query (line 139) | def test_parse_query FILE: test/test_xrds.rb type OpenID (line 5) | module OpenID type Yadis (line 6) | module Yadis type XRDSTestMixin (line 8) | module XRDSTestMixin function read_xrds_data_file (line 17) | def read_xrds_data_file(filename) class ParseXRDSTestCase (line 22) | class ParseXRDSTestCase < Minitest::Test method test_parse (line 26) | def test_parse method test_parse_no_xrds_xml (line 31) | def test_parse_no_xrds_xml method test_parse_no_xrds_empty (line 38) | def test_parse_no_xrds_empty method test_is_xrds (line 44) | def test_is_xrds class GetYadisXRDTestCase (line 52) | class GetYadisXRDTestCase < Minitest::Test method test_get_xrd (line 56) | def test_get_xrd method test_no_xrd (line 64) | def test_no_xrd class EachServiceTestCase (line 73) | class EachServiceTestCase < Minitest::Test method test_get_xrd (line 76) | def test_get_xrd method test_no_xrd (line 87) | def test_no_xrd method test_equal_j3h (line 95) | def test_equal_j3h class ExpandServiceTestCase (line 109) | class ExpandServiceTestCase < Minitest::Test method test_expand_service (line 121) | def test_expand_service class PrioSortTestCase (line 136) | class PrioSortTestCase < Minitest::Test method new_uri (line 137) | def new_uri(priority) method test_sorting (line 143) | def test_sorting class GetCanonicalIDTestCase (line 158) | class GetCanonicalIDTestCase < Minitest::Test method test_multisegment_xri (line 161) | def test_multisegment_xri FILE: test/test_xri.rb type OpenID (line 4) | module OpenID type Yadis (line 6) | module Yadis class XriDiscoveryTestCase (line 8) | class XriDiscoveryTestCase < Minitest::Test method test_isXRI? (line 10) | def test_isXRI? class XriEscapingTestCase (line 21) | class XriEscapingTestCase < Minitest::Test method test_escaping_percents (line 22) | def test_escaping_percents method test_escaping_xref (line 27) | def test_escaping_xref class XriTransformationTestCase (line 40) | class XriTransformationTestCase < Minitest::Test method test_to_iri_normal (line 41) | def test_to_iri_normal FILE: test/test_xrires.rb type OpenID (line 4) | module OpenID type Yadis (line 5) | module Yadis class XRDSFetcher (line 7) | class XRDSFetcher method initialize (line 8) | def initialize(results) method fetch (line 12) | def fetch(url, body=nil, headers=nil, redirect_limit=nil) class ProxyQueryTestCase (line 21) | class ProxyQueryTestCase < Minitest::Test method setup (line 22) | def setup method test_proxy_url (line 29) | def test_proxy_url method test_proxy_url_qmarks (line 59) | def test_proxy_url_qmarks FILE: test/test_yadis_discovery.rb type OpenID (line 9) | module OpenID type YadisDiscovery (line 11) | module YadisDiscovery function mkResponse (line 17) | def self.mkResponse(data) class TestFetcher (line 32) | class TestFetcher method initialize (line 35) | def initialize(base_url) method fetch (line 39) | def fetch(url, headers, body, redirect_limit=nil) class MockFetcher (line 63) | class MockFetcher method initialize (line 64) | def initialize method fetch (line 68) | def fetch(uri, headers=nil, body=nil, redirect_limit=nil) class TestSecondGet (line 81) | class TestSecondGet < Minitest::Test method test_404 (line 84) | def test_404 class DiscoveryTestCase (line 92) | class DiscoveryTestCase method initialize (line 96) | def initialize(testcase, input_name, id_name, result_name, success) method setup (line 105) | def setup method do_discovery (line 113) | def do_discovery method runCustomTest (line 119) | def runCustomTest class NoContentTypeFetcher (line 155) | class NoContentTypeFetcher method fetch (line 156) | def fetch(url, body=nil, headers=nil, redirect_limit=nil) class BlankContentTypeFetcher (line 161) | class BlankContentTypeFetcher method fetch (line 162) | def fetch(url, body=nil, headers=nil, redirect_limit=nil) class TestYadisDiscovery (line 167) | class TestYadisDiscovery < Minitest::Test method test_yadis_discovery (line 170) | def test_yadis_discovery method test_is_xrds_yadis_location (line 177) | def test_is_xrds_yadis_location method test_is_xrds_content_type (line 185) | def test_is_xrds_content_type method test_is_xrds_neither (line 193) | def test_is_xrds_neither method test_no_content_type (line 201) | def test_no_content_type method test_blank_content_type (line 208) | def test_blank_content_type FILE: test/testutil.rb type OpenID (line 10) | module OpenID type TestDataMixin (line 11) | module TestDataMixin function read_data_file (line 15) | def read_data_file(filename, lines=true, data_dir=TEST_DATA_DIR) type FetcherMixin (line 26) | module FetcherMixin function with_fetcher (line 27) | def with_fetcher(fetcher) type Const (line 38) | module Const function const (line 39) | def const(symbol, value) class MockResponse (line 46) | class MockResponse method initialize (line 49) | def initialize(code, body) type ProtocolErrorMixin (line 55) | module ProtocolErrorMixin function assert_protocol_error (line 56) | def assert_protocol_error(str_prefix) type OverrideMethodMixin (line 69) | module OverrideMethodMixin function with_method_overridden (line 70) | def with_method_overridden(method_name, proc) type InstanceDefExtension (line 99) | module InstanceDefExtension function instance_def (line 100) | def instance_def(method_name, &proc) class GoodAssoc (line 112) | class GoodAssoc method initialize (line 115) | def initialize(handle='-blah-') method check_message_signature (line 120) | def check_message_signature(msg) class HTTPResponse (line 125) | class HTTPResponse method _from_raw_data (line 126) | def self._from_raw_data(status, body="", headers={}, final_url=nil) FILE: test/util.rb type OpenID (line 4) | module OpenID type TestUtil (line 5) | module TestUtil function assert_log_matches (line 6) | def assert_log_matches(*regexes) function assert_log_line_count (line 25) | def assert_log_line_count(num_lines) function silence_logging (line 40) | def silence_logging