github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

bobtfish / catalystx-simplelogin

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 17
    • 9
  • Source
  • Commits
  • Network (9)
  • Issues (0)
  • Downloads (7)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • break_catalyst
    • chained_help
    • master ✓
    • openid
  • Tags (7)
    • 0.08
    • 0.07
    • 0.05
    • 0.04
    • 0.03
    • 0.02
    • 0.01
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Simple login controller and template bundle for Catalyst — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Bump versions 
bobtfish (author)
Wed Jan 27 14:02:36 -0800 2010
commit  9c8c8c2355bfe3ffee1d6fc36afb63e07e6bba0e
tree    b1181d783b0fea8d4f911373d09481dc66cd82cb
parent  5462462e546f417dfe2fd1ec6155a67e1c365138
catalystx-simplelogin /
name age
history
message
file .gitignore Sun Dec 13 11:58:44 -0800 2009 Commit a trivial dbic using test app for use te... [bobtfish]
file Changes Wed Jan 27 14:02:36 -0800 2010 Bump versions [bobtfish]
file MANIFEST.SKIP Sun Dec 13 11:58:44 -0800 2009 Commit a trivial dbic using test app for use te... [bobtfish]
file Makefile.PL Sun Dec 13 11:58:44 -0800 2009 Commit a trivial dbic using test app for use te... [bobtfish]
file README Wed Dec 09 14:55:28 -0800 2009 Update README [bobtfish]
file TODO Thu Dec 10 16:03:30 -0800 2009 Trim TODO [bobtfish]
directory lib/ Wed Jan 27 14:02:36 -0800 2010 Bump versions [bobtfish]
directory t/ Wed Jan 27 13:56:20 -0800 2010 Fix actionrole when not using the withredirect ... [bobtfish]
README
NAME
    CatalystX::SimpleLogin - Provide a simple Login controller which can be
    reused

SYNOPSIS
        package MyApp;
        use Moose;
        use namespace::autoclean;

        use Catalyst qw/
            +CatalystX::SimpleLogin
            Authentication
            Session
            Session::State::Cookie
            Session::Store::File
        /;
        extends 'Catalyst';

        __PACKAGE__->config(
            'Plugin::Authentication' => { # Auth config here }
        );

       __PACKAGE__->config(
            'Controller::Login' => { # SimpleLogin config here }
       );

       __PACKAGE__->setup;

DESCRIPTION
    CatalystX::SimpleLogin is an application class Moose::Role which will
    inject a Catalyst::Controller which is an instance of
    CatalystX::SimpleLogin::Controller::Login into your application. This
    provides a simple login and logout page with the adition of only one
    line of code and one template to your application.

REQUIREMENTS
    A Catalyst application
    Working authentication configuration
    Working session configuration
    A view

CUSTOMISATION
    CatalystX::SimpleLogin is a prototype for CatalystX::Elements. As such,
    one of the goals is to make it easy for users to customise the provided
    component to the maximum degree possible, and also, to have a linear
    relationship between effort invested and level of customisation
    achieved.

    Three traits are shipped with SimpleLogin: WithRedirect, Logout, and
    RenderAsTTTemplate. These traits are set in the config:

       __PACKAGE__->config(
            'Controller::Login' => {
                traits => [qw/ Logout WithRedirect RenderAsTTTemplate /],
                login_form_args => { # see the login form },
       );

COMPONENTS
    *   CatalystX::SimpleLogin::Controller::Login - first point of call for
        customisation. Override the action configs to reconfigure the paths
        of the login or logout actions. Subclass to be able to apply method
        modifiers to run before / after the login or logout actions or
        override methods.

    *   CatalystX::SimpleLogin::TraitFor::Controller::Logout - provides the
        "logout" action and associated methods. You can compose this
        manually yourself if you want just that action.

        This trait is set by default, but if you set another trait in your
        config, you will have to include it.

    *   CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect -
        provides the "login" action with a wrapper to redirect to a page
        which needs authentication, from which the user was previously
        redirected. Goes hand in hand with Catalyst::ActionRole::NeedsLogin

    *   CatalystX::SimpleLogin::TraitFor::Controller::Login::RenderAsTTTempl
        ate - sets the stash variable 'template' to point to a string
        reference containing the rendered template so that it's not
        necessary to have a login.tt template file.

    *   CatalystX::SimpleLogin::Form::Login - the HTML::FormHandler form for
        the login form.

    *   Catalyst::ActionRole::NeedsLogin - Used to cause a specific path to
        redirect to the login page if a user is not authenticated.

TODO
    Here's a list of what I think needs working on, in no particular order.

    Please feel free to add to or re-arrange this list :)

    Fix extension documentation
    Document all this stuff.
    Examples of use / customisation in documentation
    Fixing one uninitialized value warning in LoginRedirect
    Disable the use of NeedsLogin ActionRole when WithRedirect is not loaded

SOURCE CODE
        http://github.com/bobtfish/catalystx-simplelogin/tree/master

        git://github.com/bobtfish/catalystx-simplelogin.git

    Forks and patches are welcome. #formhandler or #catalyst (irc.perl.org)
    are both good places to ask about using or developing this code.

SEE ALSO
    *   Catalyst

    *   Moose and Moose::Role

    *   MooseX::MethodAttributes::Role - Actions compsed from Moose::Role.

    *   CatalystX::InjectComponent - Injects the controller class

    *   HTML::FormHandler - Generates the login form

    *   Catalyst::Plugin::Authentication - Responsible for the actual heavy
        lifting of authenticating the user

    *   Catalyst::Plugin::Session

    *   Catalyst::Controller::ActionRole - Allows you to decorate actions
        with roles (E.g Catalyst::ActionRole::NeedsLogin)

    *   CatalystX::Component::Traits - Allows Moose::Role to be composed
        onto components from config

AUTHORS
    Tomas Doran (t0m) "<bobtfish@bobtfish.net>"
    Zbigniew Lukasiak
    Stephan Jauernick (stephan48) "<stephan@stejau.de>"
    Gerda Shank (gshank) "gshank@cpan.org"
    Florian Ragwitz "rafl@debian.org"

LICENSE
    Copyright 2009 Tomas Doran. Some rights reserved.

    This sofware is free software, and is licensed under the same terms as
    perl itself.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server