« blib/lib/Langertha/Knarr/TokenStore/Memory.pm
↑ Summary
blib/lib/Langertha/Knarr/Handler/Raider.pm »
| 1 | package Langertha::Knarr::Authorizer; | ||
| 2 | # ABSTRACT: Role for who may use a Knarr, and with which model | ||
| 3 | our $VERSION = '1.103'; | ||
| 4 | use Moose::Role; | ||
| 5 | use Future; | ||
| 6 | |||
| 7 | |||
| 8 | requires qw( identify authorize visible_models forwards_client_key ); | ||
| 9 | |||
| 10 | sub start { } | ||
| 11 | |||
| 12 | sub identify_f { | ||
| 13 | my ( $self, $http_req, $action ) = @_; | ||
| 14 | return Future->done( $self->identify( $http_req, $action ) ); | ||
| 15 | } | ||
| 16 | |||
| 17 | 1; | ||
| 18 | |||
| 19 | __END__ |