perl-Dancer2-Plugin-OAuth2-Server-0.10-alt1.noarch.rpm


Advertisement

Description

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:
_login_resource_owner
_confirm_by_resource_owner
_verify_client
_store_auth_code
_generate_token
_verify_auth_code
_store_access_token
_verify_access_token
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.

Alternatives

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

Requires

Name Value
/usr/share/perl5 -
perl(Class/Load.pm) -
perl(Crypt/PRNG.pm) -
perl(Dancer2/Plugin.pm) -
perl(MIME/Base64.pm) -
perl(Moo.pm) -
perl(Moo/Role.pm) -
perl(Time/HiRes.pm) -
perl(URI.pm) -
perl(URI/QueryParam.pm) -
perl(feature.pm) -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Dancer2/Plugin/OAuth2/Server.pm) = 0.100
perl(Dancer2/Plugin/OAuth2/Server/Role.pm) -
perl(Dancer2/Plugin/OAuth2/Server/Simple.pm) -
perl-Dancer2-Plugin-OAuth2-Server = 0.10-alt1

Download

Type URL
Mirror ftp.altlinux.org
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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/share/doc/perl-Dancer2-Plugin-OAuth2-Server-0.10/Changes
/usr/share/doc/perl-Dancer2-Plugin-OAuth2-Server-0.10/LICENSE
/usr/share/doc/perl-Dancer2-Plugin-OAuth2-Server-0.10/README
/usr/share/perl5/Dancer2/
/usr/share/perl5/Dancer2/Plugin/
/usr/share/perl5/Dancer2/Plugin/OAuth2/Server.pm
/usr/share/perl5/Dancer2/Plugin/OAuth2/Server/Role.pm
/usr/share/perl5/Dancer2/Plugin/OAuth2/Server/Simple.pm

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
Advertisement
Advertisement