Code Monkey home page Code Monkey logo

auth's Introduction

PHPixie PHP Framework

Website: phpixie.com

PHPixie started as a micro framework and has gradually grown to be one of the most popular fullstack PHP frameworks while retaining its high performance. This is in part because of the strict architecture that avoids common pitfalls such as reliance on static methods, global scope, singletons and other antipatterns, thus also ensuring that the code is easy to read, debug, extend and test. In fact, all PHPixie components boast full unit test coverage. This PHP framework never stands in your way and provides you with full control over execution flow. It's easy to learn and straightforward to master.

But it's not all just about the code. The PHPixie community is very friendly and helpful—you can expect an answer to your question within minutes of asking it in the chat. The framework documentation is full of examples and is regularly updated with tutorial videos.

Demo

Want to see an example? Check out a simple base project implementing user and administrator authorization: https://github.com/phpixie/project-auth

Project Demo

PHPixie will fit both newcomers and experienced architects providing ease of use, solid foundation and total flexibility.

Highlights

  • Great performance - Designed for speed while not compromising on features. Proven by independant benchmarks.
  • Bundle System - Reuse and share your code via Composer as self contained bundles
  • Linear code flow - Never find yourself in an event hell ever again as event use is avoided
  • MongoDB Support - Database components support working with MongoDB out of the box, including relationships between SQL databases and Mongo collections.
  • Best Practices - Designed from scratch according to SOLID principles and industry standards.
  • Hardened Security - Using cryptographically secure hashes, random tokens and secure cookie handing.
  • Developer support - Need help? Just drop a line in the chat and get help from the creator in no time.

auth's People

Contributors

dracony avatar parishop avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auth's Issues

Pixie->basepath variable not used as default "return_to_url"

In PHPixie/Auth/Controller/Facebook.php, row 163, return_url is set as /. However, this could be improved by setting return_url as $this->pixie->basepath. This would minimize the risk of "never ending loop" where the Facebook controller just forwards the user all the time to faulty Facebook url.

Facebook logout function does not follow the Facebook Platform policy

According to Facebook Platform Policies, especially the "I. Features and Functionality - # 6" part, the site that uses Facebook login service should also provide logout function. While it is totally possible to make that kind of link on the own app, I feel it is better if it is put in part of the Auth module.

Luckily, Facebook has already an automatic URL for the logout function and while there isn't really good documentation on the Facebook's site, there is already some info available; check for example the most voted answer for this StackOverflow question. Simply put, the URL should be something like this:

https://facebook.com/logout.php?access_token=TOKEN&next=REDIRECT_URL

I think that adding this URL to the logout flow would make the service more complete and also more friendly towards the policy set by Facebook.

allow_multiple_login and centos cross-browser session

After deploying my service on CentOS server it's occured that session opened in one browser is "seen" in another browser. (Previously i've develop my service on Windows 7 XAMPP localhost and didn't met this issue). Looking for PHPixie\Auth\Login sources i have found that variable $allow_multiple_login in Password class is declared but never after been used. Is this bug or feature? Does my issue is CentOS (SELinux) specific? And how can i change the source to fix this issue (for example, adding $_SERVER['HTTP_USER_AGENT'] or so to cookie)? Thanks!

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.