GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DANCER2::PLUGIN::AUTH::EXTENSIBLE::PROVIDER::CONFIG (3)

.ds Aq ’

NAME

Dancer2::Plugin::Auth::Extensible::Config - example auth provider using app config

CONTENTS

DESCRIPTION

This is a simple authentication provider which authenticates based on a list of usernames, passwords (crypted, preferably - see below) and role specifications provided in the realm definition in your app’s config file.

This class is primarily intended as an example of what an authentication provider class should do; however, if you just want simple user authentication with user details stored in your app’s config file, it may well suit your needs.

See Dancer2::Plugin::Auth::Extensible for details on how to use the authentication framework.

SYNOPSIS

In your app’s config.yml:



    plugins:
        Auth::Extensible:
            realms:
                config:
                    provider: Config
                    users:
                        - user: dave
                          pass: supersecret
                          roles:
                            - Developer
                            - Manager
                            - BeerDrinker
                        - user: bob
                          pass: {SSHA}+2u1HpOU7ak6iBR6JlpICpAUvSpA/zBM
                          roles:
                            - Tester



As you can see, you can define the usernames, passwords (please use crypted passwords, RFC2307-style, not plain text (although plain text *is* supported, but really not a good idea), and the roles for each user (if you’re not planning to use roles, omit the roles section from each user entirely).

METHODS

authenticate_user CW$username, CW$password

get_user_details CW$username

get_user_roles CW$username

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DANCER2::PLUGIN::AUTH::EXTENSIBLE::PROVIDER::CONFIG (3) 2016-01-20

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.