The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PlugAuth::Role::Refresh - Role for PlugAuth reload plugins

VERSION

version 0.14

SYNOPSIS

 package PlugAuth::Plugin::MyRefresh;
 
 use Role::Tiny::With;
 
 with 'PlugAuth::Role::Plugin';
 with 'PlugAuth::Role::Refresh';
 
 sub refresh {
   my ($self) = @_;
   # called on every request
 }
 
 1;

DESCRIPTION

Use this role for PlugAuth plugins which need to be refreshed on every call. You will likely want to mix this role in with either or both PlugAuth::Role::Auth and PlugAuth::Role::Authz.

REQUIRED ABSTRACT METHODS

$plugin->refresh

Called on every request.

SEE ALSO

PlugAuth, PlugAuth::Guide::Plugin, Test::PlugAuth::Plugin::Refresh

AUTHOR

Graham Ollis <gollis@sesda3.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by NASA GSFC.

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