perl-Dancer2-Plugin-OAuth2-Server - Easier implementation of an OAuth2 Authorization Server / Resource Server with Dancer2 Port of Mojo

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Dancer2-Plugin-OAuth2-Server-0.10-alt1.noarch.rpm
Package name perl-Dancer2-Plugin-OAuth2-Server
Package version 0.10
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 56.33 KB
Installed size 56.33 KB
Dancer2::Plugin::OAuth2::Server is a port of Mojolicious plugin for OAuth2 server
With this plugin, you can implement an OAuth2 Authorization server and Resource server without too much hassle.
The Basic flows are implemented, authorization code, access token, refresh token, ...
A "simple" implementation is provided with a "in memory" session management, however, it will not work on multi process persistent
environment, as each restart will loose all the access/refrest tokens. Token will also not be shared between processes.
For a usable implementation in a realistic context, you will need to create a class implementing the Role Dancer2::Plugin::OAuth2::Server::Role,
and configure the server_class option in configuration of the plugin. The following methods needs to be implemented:
On the resource server side, to protect a resource, just use the dsl keyword oauth_scopes with
either one scope or the list of scope needed. In case the authorization header provided is not correct,
a 400 http code is returned with an erro message.
If the Authorization header is correct and the access is granted, the access token information are
stored within the var keyword, in oauth_access_token, for the time of the request. You can access the
access token information through var('oauth_access_token') within the route code itself.


Package Version Architecture Repository
perl-Dancer2-Plugin-OAuth2-Server - - -


Name Value
/usr/share/perl5 -
perl(Class/ -
perl(Crypt/ -
perl(Dancer2/ -
perl(MIME/ -
perl( -
perl(Moo/ -
perl(Time/ -
perl( -
perl(URI/ -
perl( -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -


Name Value
perl(Dancer2/Plugin/OAuth2/ = 0.100
perl(Dancer2/Plugin/OAuth2/Server/ -
perl(Dancer2/Plugin/OAuth2/Server/ -
perl-Dancer2-Plugin-OAuth2-Server = 0.10-alt1


Type URL
Binary Package perl-Dancer2-Plugin-OAuth2-Server-0.10-alt1.noarch.rpm
Source Package perl-Dancer2-Plugin-OAuth2-Server-0.10-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Dancer2-Plugin-OAuth2-Server rpm package:
    # sudo apt-get install perl-Dancer2-Plugin-OAuth2-Server



See Also

Package Description
perl-Dancer2-Plugin-OpenAPIRoutes-0.03-alt1.noarch.rpm automatic routes creation
perl-Dancer2-Plugin-PageHistory-0.210-alt1.noarch.rpm Collect interesting pages a user has visited in the session
perl-Dancer2-Plugin-Paginator-2.09-alt1.noarch.rpm Dancer2 plugin for Paginator::Lite
perl-Dancer2-Plugin-ParamKeywords-0.1.5-alt1.noarch.rpm Sugar for the params() keyword
perl-Dancer2-Plugin-ParamTypes-0.006-alt1.noarch.rpm Parameter type checking plugin for Dancer2
perl-Dancer2-Plugin-Passphrase-3.3.3-alt1.noarch.rpm Passphrases and Passwords as objects for Dancer2
perl-Dancer2-Plugin-Path-Class-0.08-alt1.noarch.rpm list a directory using Path::Class
perl-Dancer2-Plugin-Pg-0.07-alt1.noarch.rpm PostgreSQL connection for Dancer2
perl-Dancer2-Plugin-ProbabilityRoute-0.03-alt1.noarch.rpm plugin to define behavior with probability matching rules
perl-Dancer2-Plugin-ProgressMeter-0.011-alt1.noarch.rpm Keeps track of progress status
perl-Dancer2-Plugin-ProgressStatus-0.018-alt1.noarch.rpm Keeps track of progress status
perl-Dancer2-Plugin-Queue-0.006-alt1.noarch.rpm Dancer2 plugin for message queue abstractions
perl-Dancer2-Plugin-Queue-IronMQ-0.002-alt1.noarch.rpm Dancer2::Plugin::Queue backend using IronMQ
perl-Dancer2-Plugin-REST-1.02-alt1.noarch.rpm A plugin for writing RESTful apps with Dancer2
perl-Dancer2-Plugin-Redis-0.009-alt1.noarch.rpm Perl Dancer2 plugin for interaction with key-value-store Redis