Matrix.pm 430 B

123456789101112131415161718192021
  1. package Trog::Authz::Matrix;
  2. use strict;
  3. use warnings;
  4. no warnings 'experimental';
  5. use feature qw{signatures state};
  6. use parent Trog::Authz::Base;
  7. use constant 'required_params' => [ 'extAuthData' ];
  8. sub do_auth ($self) {
  9. die "Please setup an admin user first" if !$self->{'params'}{'hasuers'};
  10. # TODO: Parse json from params->extAuthData, figure it out from there
  11. $self->{'failed'} = 1;
  12. return $self;
  13. }
  14. 1;