NAME

Mojolicious::Plugin::Ident::Response - Ident response object

VERSION

version 0.22

DESCRIPTION

This class represents the responses as they come back from the remote ident server.

NOTE: This class is only used for blocking requests. If you provide a callback, then you are probably more interested in AnyEvent::Ident::Response, which is similar, but does not have a same_user method.

ATTRIBUTES

$ident->username

The username of the remote connection as provided by the remote ident server.

$ident->os

The operating system of the remote connection as provided by the remote ident server.

METHODS

$ident->same_user

Returns true if the remote user is the same as the one which started the Mojolicious application. The user is considered the same if the remote connection came over the loopback address (127.0.0.1) and the username matches either the server's username or real uid.

SEE ALSO

Mojolicious::Plugin::Ident

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.