view release on metacpan or search on metacpan
=head1 SYNOPSIS
use Authen::ACE4;
AceInitialize();
($result, $handle, $moreData, $echoFlag, $respTimeout,
$nextRespLen, $prompt)
= AceStartAuth($username);
($result, $moreData, $echoFlag, $respTimeout,
$nextRespLen, $prompt)
= Authen::ACE4::AceContinueAuth($handle, $resp);
($result, $status)
= Authen::ACE4::AceGetAuthenticationStatus($handle);
$result = AceCloseAuth($handle);
before calling AceInitialize.
=item AceStartAuth
($result, $handle, $moreData, $echoFlag, $respTimeout,
$nextRespLen, $prompt)
= Authen::ACE4::AceStartAuth($username);
The AceStartAuth function is designed to be used aling with
AceContinueAuth and AceCloseAuth.
=item echoFlag
A flag that gives a hint to the developer whether the next response
should be echoed on the screen.
=item respTimeout
A hint to the developer about how long to display this prompt
string to the user.
=item nextRespLen
=back
=item AceContinueAuth
($result, $moreData, $echoFlag, $respTimeout,
$nextRespLen, $prompt)
= Authen::ACE4::AceContinueAuth($handle, $resp);
AceContinueAuth should continue to be called for as long as
=item echoFlag
A flag that gives a hint to the developer whether the next response
should be echoed on the screen.
=item respTimeout
A hint to the developer about how long to display this prompt
string to the user.
=item nextRespLen
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
=head1 SYNOPSIS
use Authen::Challenge::Basic;
$server = Authen::Challenge->new ('Secret' => 'known2us',
'Timeout' => 30,
'Sync' => 10);
$client = Authen::Challenge->new ('Secret' => 'known2us',
'Timeout' => 30,
'Sync' => 10);
$challenge = $server->Challenge;
$response = $client->Response($challenge);
Creates a new instance of a challenge/response endpoint. It has three
parameters that influence its behavior. Those can be seen next
$server = Authen::Challenge::Basic->new ('Secret' => 'known2us',
'Timeout' => 30,
'Sync' => 10);
'Secret' is used to indicate the shared secret to use in this session.
'Timeout' specifies the lifespan, in seconds, for this transaction.
This means that a succesful Validate() must occur within this many
seconds to have a chance to be acknowledged. Reducing this value
too much can cause problems as a slight ammount of load can make the
session fail. 30 seconds is a reasonable default for many uses. If
left unspecified, no timeout is enforced.
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
eg/mod_auth_token_example.pl view on Meta::CPAN
<Location "/protected">
AuthTokenSecret "$secret"
AuthTokenPrefix "$prefix/"
## Number of seconds that a Token is valid:
AuthTokenTimeout 14400
## Change to "on" to limit by requesting IP.
AuthTokenLimitByIp off
</Location>
eg/mod_auth_token_example.pl view on Meta::CPAN
<Location "/protected">
AuthTokenSecret "12345678"
AuthTokenPrefix "/resources/"
## Number of seconds that a Token is valid:
AuthTokenTimeout 14400
## Change to "on" to limit by requesting IP.
AuthTokenLimitByIp off
</Location>
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Authen/NZRealMe/CommonURIs.pm view on Meta::CPAN
=item saml_nameid_format_transient => urn:oasis:names:tc:SAML:2.0:nameid-format:transient
Identifier type used for SAML 2.0 NameID subject format, unique identifier for each flow.
Source [SAML2].
=item rm_timeout => urn:nzl:govt:ict:stds:authn:deployment:RealMe:SAML:2.0:status:Timeout
Identifier type used by RealMe for SAML 2.0 response timeout status references.
Source [RM_LOGIN].
=item gls_timeout => urn:nzl:govt:ict:stds:authn:deployment:GLS:SAML:2.0:status:Timeout
Identifier type used by GLS for SAML 2.0 response timeout status references.
Source [RM_LOGIN].
=item xpil => urn:oasis:names:tc:ciq:xpil:3
view all matches for this distribution
view release on metacpan or search on metacpan
t/60-json.t view on Meta::CPAN
subtest 'authentication' => sub {
isa_ok( $auth->provider($provider), 'Authen::Pluggable::' . $provider );
$auth->provider($provider)->_cfg->{url}->path('/auth')
->port( $t->ua->server->url->port );
my $loop = Mojo::IOLoop->singleton;
$loop->timer( 20 => sub { fail('Timeout'); $loop->stop } );
$loop->subprocess->run(
sub {
my $uinfo = $auth->authen( $user, '' );
is( $uinfo, undef, 'User no authenticated (missing pass)' );
$uinfo = $auth->authen( $user, $pass . $pass );
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
$self->{'node_addr_a'} = $ip.':'.$port;
my %io_sock_args = (
Type => SOCK_DGRAM,
Proto => 'udp',
Timeout => $self->{'timeout'},
LocalAddr => $self->{'localaddr'},
PeerAddr => $host,
PeerPort => $port,
);
$self->{'sock'} = IO::Socket::INET->new(%io_sock_args)
$self->{'sock'} = undef;
$self->{'sock_list'} = [];
my %io_sock_args = (
Type => SOCK_DGRAM,
Proto => 'udp',
Timeout => $self->{'timeout'},
LocalAddr => $self->{'localaddr'},
);
foreach my $node (keys %{$self->{'node_list_a'}}) {
if ($debug) { print STDERR 'Sending request to: '.$node."\n"; }
$io_sock_args{'PeerAddr'} = $self->{'node_list_a'}->{$node}->[0];
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Authen/Simple/FTP.pm view on Meta::CPAN
my ( $self, $username, $password ) = @_;
my $connection = Net::FTP->new(
Host => $self->host,
Port => $self->port,
Timeout => $self->timeout
);
unless ( defined $connection ) {
my $host = $self->host;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Authen/Simple/RADIUS.pm view on Meta::CPAN
my ( $self, $username, $password ) = @_;
my $connection = Authen::Radius->new(
Host => sprintf( "%s:%d", $self->host, $self->port ),
Secret => $self->secret,
Timeout => $self->timeout
);
unless ( defined $connection ) {
my $host = $self->host;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Authen/Simple/WebForm.pm view on Meta::CPAN
Defaults to "Authen::Simple::WebForm/$VERSION".
=item lwp_timeout
Timeout in seconds. Set to zero to disable.
This is how long the script will wait for a response for each page fetch.
Defaults to "15" seconds.
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
smbval/rfcnb-error.h view on Meta::CPAN
#define RFCNBE_CallRejNLFCN 11 /* Call rejected, not listening for CN */
#define RFCNBE_CallRejCNNP 12 /* Call rejected, called name not present */
#define RFCNBE_CallRejInfRes 13/* Call rejetced, name ok, no resources */
#define RFCNBE_CallRejUnSpec 14/* Call rejected, unspecified error */
#define RFCNBE_BadParam 15/* Bad parameters passed ... */
#define RFCNBE_Timeout 16/* IO Timed out */
/* Text strings for the error responses */
static char *RFCNB_Error_Strings[] = {
smbval/rfcnb-error.h view on Meta::CPAN
"RFCNBE_CallRejNLFCN: Call rejected. Not listening for called name.",
"RFCNBE_CallRejCNNP: Call rejected. Called name not present.",
"RFCNBE_CallRejInfRes: Call rejected. Name present, but insufficient resources.",
"RFCNBE_CallRejUnSpec: Call rejected. Unspecified error.",
"RFCNBE_BadParam: Bad parameters passed to a routine.",
"RFCNBE_Timeout: IO Operation timed out ..."
};
view all matches for this distribution
view release on metacpan or search on metacpan
TacacsPlus.pm view on Meta::CPAN
push @{ $self->{'servers'} }, @_;
} else {
%h = @_;
}
my $res=-1;
$self->{'timeout'} = $h{'Timeout'} ? $h{'Timeout'} : 15;
$self->{'port'} = $h{'Port'} ? $h{'Port'} : 'tacacs';
$self->{'host'} = $h{'Host'};
$self->{'key'} = $h{'Key'};
$res=init_tac_session($self->{'host'},$self->{'port'},
$self->{'key'},$self->{'timeout'});
TacacsPlus.pm view on Meta::CPAN
my %h = @{ $s->[0] };
shift @{ $s };
$res=init_tac_session( $h{'Host'},
$h{'Port'} ? $h{'Port'} : 'tacacs',
$h{'Key'},
$h{'Timeout'} ? $h{'Timeout'} : 15
);
last if ($res >= 0);
}
}
$self->{'open'} = 1 if ($res >= 0);
TacacsPlus.pm view on Meta::CPAN
my %h = @{ $s->[0] };
shift @{ $s };
my $ret=init_tac_session( $h{'Host'},
$h{'Port'} ? $h{'Port'} : 'tacacs',
$h{'Key'},
$h{'Timeout'} ? $h{'Timeout'} : 15
);
next if ($ret < 0);
$res=make_auth($username,$password,$authen_type);
last if $res;
}
TacacsPlus.pm view on Meta::CPAN
use Authen::TacacsPlus;
$tac = new Authen::TacacsPlus(Host=>$server,
Key=>$key,
Port=>'tacacs',
Timeout=>15);
or
$tac = new Authen::TacacsPlus(
[ Host=>$server1, Key=>$key1, Port=>'tacacs', Timeout=>15 ],
[ Host=>$server2, Key=>$key2, Port=>'tacacs', Timeout=>15 ],
[ Host=>$server3, Key=>$key3, Port=>'tacacs', Timeout=>15 ],
... );
$tac->authen($username,$passwords);
Authen::TacacsPlus::errmsg();
TacacsPlus.pm view on Meta::CPAN
Authen::TacacsPlus allows you to authenticate using tacacs+ server.
$tac = new Authen::TacacsPlus(Host=>$server,
Key=>$key,
Port=>'tacacs',
Timeout=>15);
Opens new session with tacacs+ server on host $server, encrypted
with key $key. Undefined object is returned if something wrong
(check errmsg()).
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Authen/U2F/Tester/Error.pm view on Meta::CPAN
my %errors = (
OTHER_ERROR => 'Other Error',
BAD_REQUEST => 'Bad Request',
CONFIGURATION_UNSUPPORTED => 'Configuration Unsupported',
DEVICE_INELIGIBLE => 'Device Ineligible',
TIMEOUT => 'Timeout');
}
__PACKAGE__->meta->make_immutable;
__END__
view all matches for this distribution
view release on metacpan or search on metacpan
examples/demoserver/u2f-api.js view on Meta::CPAN
* @private
*/
u2f.getChromeRuntimePort_ = function(callback) {
var port = chrome.runtime.connect(u2f.EXTENSION_ID,
{'includeTlsChannelId': true});
setTimeout(function() {
callback(new u2f.WrappedChromeRuntimePort_(port));
}, 0);
};
/**
* Return a 'port' abstraction to the Authenticator app.
* @param {function(u2f.WrappedAuthenticatorPort_)} callback
* @private
*/
u2f.getAuthenticatorPort_ = function(callback) {
setTimeout(function() {
callback(new u2f.WrappedAuthenticatorPort_());
}, 0);
};
/**
* Return a 'port' abstraction to the iOS client app.
* @param {function(u2f.WrappedIosPort_)} callback
* @private
*/
u2f.getIosPort_ = function(callback) {
setTimeout(function() {
callback(new u2f.WrappedIosPort_());
}, 0);
};
/**
view all matches for this distribution
view release on metacpan or search on metacpan
doc/index.html view on Meta::CPAN
<tr valign="top"><td><a href="Aw_Client.html#setAutomaticControlLabel">setAutomaticControlLabel</a></td><td>setAutomaticControlLabel</td><td>awSetAutomaticControlLabel</td></tr>
<tr valign="top"><td><a href="Aw_Client.html#setClientInfoset">setClientInfoset</a></td><td>setClientInfoset</td><td>awSetClientInfoset</td></tr>
<tr valign="top"><td><a href="Aw_Client.html#setDefaultClientTimeOut">setDefaultClientTimeOut</a></td><td>setDefaultClientTimeOut</td><td>awSetDefaultClientTimeout</td></tr>
<tr valign="top"><td><a href="Aw_Client.html#setPlatformInfo">setPlatformInfo</a></td><td>setPlatformInfo</td><td>awSetPlatformInfo</td></tr>
<tr valign="top"><td><a href="Aw_Client.html#setStateShareLimit">setStateShareLimit</a></td><td>setStateShareLimit</td><td>awSetStateShareLimit</td>
<tr valign="top"><td><a href="Aw_Client.html#stopMainLoop">stopMainLoop</a></td><td>stopMainLoop</td><td>awStopMainLoop</td>
<tr valign="top"><td><a href="Aw_Client.html#threadedCallBacks">threadedCallBacks</a></td><td>threadedCallBacks</td><td>awThreadedCallbacks</td>
<tr valign="top"><td><a href="Aw_Client.html#toString">toString</a></td><td>toString</td><td>awClientToString</td></tr>
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AxKit/XSP/Wiki.pm view on Meta::CPAN
# create diff using Text::Diff
my $prev = @history ? $history[0] : '';
my $diff = diff(\$prev, \$contents, { STYLE => 'Unified' });
my $host = $EmailHost || 'localhost';
my $smtp = Net::SMTP->new($host, Timeout => 10);
$smtp->mail('axkitwiki') || die "Wiki email alerts: MAIL FROM:<axkitwiki> failed";
$smtp->to($EmailAlerts) || die "Wiki email alerts: RCPT TO:<$EmailAlerts> failed";
$smtp->data() || die "Wiki email alerts: DATA failed";
my $date = strftime('%a, %d %b %Y %H:%M:%S %Z', localtime);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AxKit2/Connection.pm view on Meta::CPAN
push @to_close, $v;
}
}
}
$_->close("Timeout") foreach @to_close;
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
ramblings/remark.js view on Meta::CPAN
require=function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t)...
this.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[this.BACKSLASH_ESCAPE]};this.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)...
SUBST.contains=EXPRESSIONS;return{aliases:["coffee","cson","iced"],keywords:KEYWORDS,contains:EXPRESSIONS.concat([{className:"comment",begin:"###",end:"###"},hljs.HASH_COMMENT_MODE,{className:"function",begin:"("+JS_IDENT_RE+"\\s*=\\s*)?(\\(.*\\))?\\...
}()},{}],8:[function(require,module,exports){exports.addClass=function(element,className){element.className=exports.getClasses(element).concat([className]).join(" ")};exports.removeClass=function(element,className){element.className=exports.getClasse...
events.on("slideChanged",updateHash);navigateByHash()}function navigateByHash(){var slideNoOrName=(dom.getLocationHash()||"").substr(1);events.emit("gotoSlide",slideNoOrName)}function updateHash(slideNoOrName){dom.setLocationHash("#"+slideNoOrName)}}...
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Fetch.pm view on Meta::CPAN
if (eval { require LWP::Simple; 1 }) {
LWP::Simple::mirror($args{url}, $file);
}
elsif (eval { require Net::FTP; 1 }) { eval {
# use Net::FTP to get past firewall
my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600);
$ftp->login("anonymous", 'anonymous@example.com');
$ftp->cwd($path);
$ftp->binary;
$ftp->get($file) or (warn("$!\n"), return);
$ftp->quit;
view all matches for this distribution