Coder Social home page Coder Social logo

sampleauth's People

Contributors

vboctor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sampleauth's Issues

Auto-provisioning of accounts?

This may be a dumb question - is there a way to provision accounts created via this method? (i.e. ensure they're registered after first login) and related question: can we prefill certain values (e.g. name, email, etc.)

Login flow is hard to grok

Hi, I've made a 2FA (using https://github.com/PHPGangsta/GoogleAuthenticator),
and the hardest part was to understand that

  1. Iogin_page.php is called first, always
  2. this is followed by login_password_page.php, or what is set in AuthFlags->login_credentials_page,
  3. which must have it's own checking (post to it's own page), before
  4. it shall pass to the original login.php at last.

not bad and totally understandable, but was two days to decipher and try-and-error.

Login.php more complex sample?

Is there a more complex (or alternative implementation of another authentication mechanism) which can be looked at - specifically, I'd like to run a secondary password authentication routine against another database for normal users.

It appears in login.php is where authentication mechanisms are supposed to be run (ln:15), but it would be useful to see a sample with a basic 'hello world' authentication mechanism (i.e. simple password against coded constant) so we can see proper failure/success implementations.

Abstract class

I would recommend that you define as well an abstract class which needs to be implemented. This way you make sure that all authentication plugins have the required methods defined.

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.