refactory/login

There is no license information available for the latest version (dev-master) of this package.

This package is a simple login form with some utilities

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 6

Language:CSS

Type:typo3-flow-package

dev-master 2016-07-12 15:06 UTC

This package is not auto-updated.

Last update: 2024-04-22 10:13:32 UTC


README

This package is a lightweight authentication wrapper around a given package. A TYPO3 Flow package with the following features:

  • 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.

Usage:

  • Security layer for any application
  • Inspiration

Quickstart

To incluse this package into your TYPO3 Flow application just run:

composer require refactory/login

Then you need to run migrations to include the tables.

./flow doctrine:migrate

To Enable routing to package

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

Profit!

Overview

#Login screen: Login Screen

#Reset steps:

##Step 1:

Reset Password Screen

Authentication setup

The initial view will show a login panel.

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.

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

#####Routing

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

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

Account ViewHelper

Add the viewhelper to fluid and call the viewhelper function.

{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.

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

Authors:

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