2017 © Pedro Peláez
 

typo3-flow-package login

This package is a simple login form with some utilities

image

refactory/login

This package is a simple login form with some utilities

  • Tuesday, July 12, 2016
  • by svparijs
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Refactory.Login Build Status

This package is a lightweight authentication wrapper around a given package. A TYPO3 Flow package with the following features:, (*1)

  • Login and Logout a account
  • Reset a password for a given account.

These features have their own workflows, based on some research the idea was to make the registration as basic as possible. The package is built on the features that are provided in the security framework of TYPO3.Flow and require only a little configuration., (*2)

Usage: - Security layer for any application - Inspiration, (*3)

Quickstart

To incluse this package into your TYPO3 Flow application just run:, (*4)

composer require refactory/login

Then you need to run migrations to include the tables., (*5)

./flow doctrine:migrate

To Enable routing to package, (*6)

-
  name: 'Login'
  uriPattern: '<LoginSubroutes>'
  subRoutes:
    LoginSubroutes:
      package: Refactory.Login

Profit!, (*7)

Overview

Login screen:

Login Screen, (*8)

Reset steps:

Step 1:

Reset Password Screen, (*9)

Authentication setup

The initial view will show a login panel., (*10)

When authenticated but not configured, the package will redirect to the Signed In page by default. The Signed In view will show you with what "account.identifier" you have been authenticated., (*11)

Through Configuration/Settings.yaml you will be able to configure options like redirects to a package, registration and so on., (*12)

Routing

To be able to address the login feature you will need to add these routes in the general Configuration/Routes.yaml, (*13)

-
  name: 'Login'
  uriPattern: '<LoginSubroutes>'
  subRoutes:
    LoginSubroutes:
      package: Refactory.Login

Account ViewHelper

Add the viewhelper to fluid and call the viewhelper function., (*14)

{namespace secure=Refactory\Login\ViewHelpers}

<secure:account propertyPath="party.name" />

Redirect to Login page

When the action is unauthorized the TYPO3.Flow framework will redirect the package to a location set with the Settings.yaml configuration., (*15)

TYPO3:
  Flow:
    security:
      authentication:
        providers:
          DefaultProvider:
            entryPoint: 'WebRedirect'
            entryPointOptions:
              routeValues:
                '@package': 'Refactory.Login'
                '@controller': 'Login'
                '@action': 'login'

See for reference: http://flow.typo3.org/documentation/guide/partiii/security.html, (*16)

Authors:

Author: Sebastiaan van Parijs (svparijs@refactory.it), (*17)

The Versions

12/07 2016

dev-master

9999999-dev

This package is a simple login form with some utilities

  Sources   Download

The Requires