Giter Site home page Giter Site logo

guard-tutorial's Introduction

Tutorial project for KnpUGuard

...

guard-tutorial's People

Contributors

intrepion avatar leannapelham avatar weaverryan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guard-tutorial's Issues

getCredentials() always redirects to getLoginUrl() on return early?

Since getCredentials() is called on every request, if you return early (because the path isn't login_check) like your example shows, does that mean it will always redirect to getLoginUrl() when in a secured section of a site?

How does it handle being authenticated already?

screenshot 2015-07-16 11 11 37

Registering the service and setting it as the authenticator should come last.

In the API Token tutorial, you register the service and authenticator before you actually implement the service. This seems a little backwards considering the authenticator isn't in a usable state yet. If you look at any of the Symfony tutorials, that part always comes last, because it's the last logical step.

Clarify example 'checkCredentials()' - "doing nothing"

The first time around, this did confuse me a little, wondering why checkCredentials() was empty.

Might it be a good idea to put a note (near the 'doing nothing' - or maybe in the code comments) to clarify that it has effectively already checked the credentials are good when it searched for the user by token, in getUser() ?

Installing guard should be mentioned before creating the login form.

It seems odd to me to not have the mentioning of installing Guard before the creation of the login form. Especially since the previous chapter is the installation. I would simply link it at the top and say something like "Make sure you've followed the previous chapter and installed KnpGuard".

Add tutorial to describe how Guard flows (functions).

Per my comment in #4, it would be awesome if there was a tutorial on how the flow works for Guard.

The comment:

I may be a bit confused because there isn't anything in the tutorial which truly describes the entire path of authentication when using Guard. It would be really helpful to have the first part of the tutorial describe the authenticator class itself, and how it progresses. From both an unauthenticated call to an authenticated area, to an authenticated call to an authenticated area, so that you can understand how it flows from one method to the next.

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.