- INTERAL METHODS
Test::OpenID::Consumer - setup a simulated OpenID consumer
Test::OpenID::Consumer will provide a consumer to test your OpenID server against. To use it, do something like this:
use Test::More tests => 1; use Test::OpenID::Consumer; my $consumer = Test::OpenID::Consumer->new; my $url_root = $consumer->started_ok("server started ok"); $consumer->verify_ok('http://server/identity/openid');
Create a new test OpenID consumer
Get/set the LWP useragent to use for fetching pages. Defaults to an instance of LWP::UserAgent::Paranoid with localhost whitelisted.
Test whether the consumer's server started, and if it did, return the URL it's at.
Attempts to verify the given OpenID. At the moment, the verification MUST NOT require any logging in or setup, but it may be supported in the future.
Like verify_ok, but the test passes if the OpenID verification process is cancelled (i.e. the user chose not to trust the authenticating site).
Like verify_ok but the test passes if the OpenID client is unable to find a valid OpenID identity at the URL given.
These methods implement the HTTP server (see HTTP::Server::Simple) that the consumer uses. You shouldn't call them.
Thomas Sibley <email@example.com>
Copyright (c) 2007, Best Practical Solutions, LLC. All rights reserved.
You may distribute this module under the same terms as Perl 5.8 itself.