| Catalyst-Authentication-Credential-RPX documentation | view source | Contained in the Catalyst-Authentication-Credential-RPX distribution. |
Catalyst::Authentication::Credential::RPX - Use JanRain's RPX service for Credentials
version 0.10053905
use Catalyst qw/ Authentication /;
package MyApp::Controller::Auth;
sub login : Local {
my ( $self , $c ) = @_;
$c->authenticate();
}
__PACKAGE__->config('Plugin::Authentication' => {
default_realm => 'RPX_Service',
realms => {
RPX_Service => {
credential => {
class => 'RPX',
# Package Options
api_key => 'ASDF...',
# optional fields
base_url => 'http://foo.bar.org',
ua => 'Firefox',
token_field => 'token',
}
}
}
});
The API Key for connecting to the RPX server.
The URL The RPX server interconnects with.
The User-Agent String.
The token to look for in request parameters
The results of the last call to ->auth_info
->authenticate( $context, $realm, $authinfo )
->authenticate_rpx( @args )
This method is called by the Authentication API.
->new( $config , $app , $realm );
unmap <- _api_driverCreates an instance of Net::API::RPX|Net::API::RPX for us to communicate with.
->_build__api_driver
Kent Fredric <kentnl@cpan.org>
This software is Copyright (c) 2011 by 'Cloudtone Studios'.
This is free software, licensed under:
The (three-clause) BSD License
| Catalyst-Authentication-Credential-RPX documentation | view source | Contained in the Catalyst-Authentication-Credential-RPX distribution. |