Giter Club home page Giter Club logo

zend-expressive-authentication-session's Introduction

zend-expressive-authentication-session

Repository abandoned 2019-12-31

This repository has moved to mezzio/mezzio-authentication-session.

Build Status Coverage Status

This library provides a zend-expressive-authentication adapter that handles form-based username/password authentication credentials where the user details are subsequently stored in a session.

Installation

Run the following to install this library:

$ composer require zendframework/zend-expressive-authentication-session

Documentation

Documentation is in the doc tree, and can be compiled using mkdocs:

$ mkdocs build

You may also browse the documentation online.

zend-expressive-authentication-session's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zend-expressive-authentication-session's Issues

Default config prevents config exception

The default settings prevents the config redirect exception in the factory.

'redirect' => '', // URI to which to redirect if no valid credentials present

if (! isset($config['redirect'])) {
throw new Exception\InvalidConfigException(
'The redirect configuration is missing for authentication'
);
}

We can remove/comment out the default config option or add detection for empty redirect values. I think the first is better.

Documentation: An alternative login workflow

As requested in #19 here is my current login workflow.

I've laid out all the related code in this gist

I'm not sure how to present an alternative workflow in the documentation therefor I'm starting this discussion to figure out the how's and where's. If you want take the code and incorporate it into the documentation yourselves then that's fine too, I'm not much of a documentation guy ๐Ÿ˜„

we cannot use zend-expressive-authentication-session with zend-expressive-authentication v1

I have first installed the latest version of zend-expressive-authentication, then I wanted to add zend-expressive-authentication-session by doing

composer require zend-expressive-authentication-session

I got this error

Problem 1
- Installation request for zendframework/zend-expressive-authentication-session ^0.5.0 -> satisfiable by zendframework/zend-expressive-authentication-session[0.5.0].
- zendframework/zend-expressive-authentication-session 0.5.0 requires zendframework/zend-expressive-authentication ^0.5.0 -> satisfiable by zendframework/zend-expressive-authentication[0.5.0] but these conflict with your requirements or minimum-stability.

If I look into https://github.com/zendframework/zend-expressive-authentication-session/blob/master/composer.json#L24,
the requirement specify ^0.5 so v1 doesn't satisfy the condition

Would it possible to update the requirements so that it is working with v1.0 ? thank you in advance

expressive 3 preview: try install zend-expressive-authentication-session:^1.0.0-dev got error reference of http-interop/http-middleware 0.4.1

Provide a narrative description of what you are trying to accomplish.

Code to reproduce the issue

composer require zendframework/zend-expressive-authentication-session:^1.0.0-dev

Expected results

Working

Actual results

Problem 1
    - Installation request for zendframework/zend-expressive-authentication-session ^1.0.0-dev -> satisfiable by zendframework/zend-expressive-authentication-session[1.0.x-dev].
    - zendframework/zend-expressive-authentication-session 1.0.x-dev requires zendframework/zend-expressive-session ^0.1.0 -> satisfiable by zendframework/zend-expressive-session[0.1.0, 0.1.x-dev].
    - zendframework/zend-expressive-session 0.1.0 requires http-interop/http-middleware ^0.4.1 -> satisfiable by http-interop/http-middleware[0.4.1].
    - zendframework/zend-expressive-session 0.1.x-dev requires http-interop/http-middleware ^0.4.1 -> satisfiable by http-interop/http-middleware[0.4.1].
    - Conclusion: don't install http-interop/http-middleware 0.4.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.