Catalyst-Plugin-OAuth2-AuthorizationServer

 view release on metacpan or  search on metacpan

AGENTS.md  view on Meta::CPAN

change does what it claims. A change is not done until `prove -lr t` is green.

## Build and test

    cpanm --installdeps .                          # dependencies
    prove -lr t                                    # the suite
    PERL_CRITIC_TEST=1 prove -l t/perl_critic.t    # style gate

## Conventions

- Perl 5.36+; subroutine signatures. Moo with MooX::StrictConstructor for OO; Try::Tiny over bare `eval`. JWTs via Crypt::JWT.
- Four-space soft tabs, no hard tabs, no trailing whitespace, newline at EOF.
- POD and comments are ASCII-only: rewrite prose rather than adding non-ASCII
  characters (no em dashes).
- Perl::Critic severity 3 (see `.perlcriticrc`); keep the critic test clean
  rather than scattering `## no critic`.

## Versioning and releases

- The version lives in every module's `$VERSION` (they move together) and is
  read from the main module by `Makefile.PL`.

META.json  view on Meta::CPAN

            "Bytes::Random::Secure" : "0",
            "Catalyst::Runtime" : "5.90000",
            "Crypt::JWT" : "0",
            "Digest::SHA" : "0",
            "JSON::MaybeXS" : "0",
            "MIME::Base64" : "3.11",
            "Moo" : "0",
            "Moo::Role" : "0",
            "MooX::StrictConstructor" : "0",
            "Scalar::Util" : "0",
            "Try::Tiny" : "0",
            "URI" : "0",
            "namespace::clean" : "0",
            "perl" : "5.036"
         }
      },
      "test" : {
         "requires" : {
            "HTTP::Request::Common" : "0",
            "Moose" : "0",
            "Test::Fatal" : "0",

META.yml  view on Meta::CPAN

  Bytes::Random::Secure: '0'
  Catalyst::Runtime: '5.90000'
  Crypt::JWT: '0'
  Digest::SHA: '0'
  JSON::MaybeXS: '0'
  MIME::Base64: '3.11'
  Moo: '0'
  Moo::Role: '0'
  MooX::StrictConstructor: '0'
  Scalar::Util: '0'
  Try::Tiny: '0'
  URI: '0'
  namespace::clean: '0'
  perl: '5.036'
resources:
  bugtracker: https://github.com/fleetfootmike/Catalyst-Plugin-OAuth2-AuthorizationServer/issues
  homepage: https://github.com/fleetfootmike/Catalyst-Plugin-OAuth2-AuthorizationServer
  repository: https://github.com/fleetfootmike/Catalyst-Plugin-OAuth2-AuthorizationServer.git
version: '0.003'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

        'Moo'                  => 0,
        'MooX::StrictConstructor' => 0,
        'Moo::Role'            => 0,
        'namespace::clean'     => 0,
        'Scalar::Util'         => 0,
        'Crypt::JWT'           => 0,
        'Bytes::Random::Secure' => 0,
        'Digest::SHA'          => 0,
        'MIME::Base64'         => '3.11',   # encode_base64url
        'JSON::MaybeXS'        => 0,
        'Try::Tiny'            => 0,
        'URI'                  => 0,
        'Catalyst::Runtime'    => '5.90000',
    },
    TEST_REQUIRES => {
        'Test::More'            => '0.98',
        'Test::Fatal'           => 0,
        'HTTP::Request::Common' => 0,
        'Moose'                 => 0,
        'namespace::autoclean'  => 0,
    },

cpanfile  view on Meta::CPAN

requires 'Moo';
requires 'MooX::StrictConstructor';
requires 'Moo::Role';
requires 'namespace::clean';
requires 'Scalar::Util';
requires 'Crypt::JWT';
requires 'Bytes::Random::Secure';
requires 'Digest::SHA';
requires 'MIME::Base64', '3.11';
requires 'JSON::MaybeXS';
requires 'Try::Tiny';
requires 'URI';
requires 'Catalyst::Runtime', '5.90000';

on test => sub {
    requires 'Test::More', '0.98';
    requires 'Test::Fatal';
    requires 'HTTP::Request::Common';
    requires 'Moose';
    requires 'namespace::autoclean';
};

lib/Catalyst/Plugin/OAuth2/AuthorizationServer.pm  view on Meta::CPAN

package Catalyst::Plugin::OAuth2::AuthorizationServer;
use v5.36;
use Scalar::Util qw/blessed/;
use JSON::MaybeXS ();
use Try::Tiny;
use URI;
use Catalyst::Plugin::OAuth2::AuthorizationServer::Server;
use Catalyst::Plugin::OAuth2::AuthorizationServer::Error;

our $VERSION = '0.003';

my $CONFIG_KEY = 'Catalyst::Plugin::OAuth2::AuthorizationServer';
my $JSON = JSON::MaybeXS->new( utf8 => 1, canonical => 1 );

# Build a per-request engine from app config. Stateless: the only stateful



( run in 0.703 second using v1.01-cache-2.11-cpan-5fbc6bb55f2 )