The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Best authorization practices

Yury Plashenkov's Avatar

Yury Plashenkov

30 Jul, 2012 07:33 PM

Hello!

Could you advice how to organize authentication/authorization with Slim?
For example, a site has public and private (for example, admin) area.
What's the best way to do this?

Sincerely,
Yury Plashenkov

  1. Support Staff 1 Posted by Brian Nesbitt on 31 Jul, 2012 03:12 AM

    Brian Nesbitt's Avatar

    Is it a single user admin and you just need http digest authentication to protect a directory?
    http://help.slimframework.com/discussions/questions/296-middleware-...

    Want to use route middleware and secure specific routes?
    http://help.slimframework.com/discussions/questions/265-return-cust...

    Also another support administrator was working on an authentication system but not sure as to its status: https://github.com/silentworks/Strong

  2. 2 Posted by Yury Plashenkov on 01 Aug, 2012 07:51 PM

    Yury Plashenkov's Avatar

    Thank you Brian!

    The best is to have an universal login and authorization system with ability to create, delete and manage users, etc. "Strong" looks good, but there is no opportunity to create/delete/manage users yet.

    Thank you for the links.

  3. Support Staff 3 Posted by Andrew Smith on 02 Aug, 2012 10:37 AM

    Andrew Smith's Avatar

    Hi Yury, thank you for your feedback on Strong, I thought it might be useful to expand on where Strong stands as a Authentication Library. I am trying to keep Strong purely a Authentication (maybe Authorization in the future) Library with no interference as to how the developer develops their project. The intent of the project is not to be a User Management System but more a build upon to do what you like System.

    You can take a look at my current Slim project I am working on to Showcase Strong, Slim, Paris and Idiorm and Twig.

    Here is an example of the Signup and Login code using Strong in the process.

    https://github.com/silentworks/sharemyideas/blob/develop/app/controllers/login.controller.php

    Do note that Strong is still a work in progress, I still have a fair bit of code to write and some documentation when I get some free time.

  4. 4 Posted by Yury Plashenkov on 02 Aug, 2012 10:51 AM

    Yury Plashenkov's Avatar

    Dear Andrew,

    Thank you very much for the reply and the usage example. Your Strong looks really good and clean. I wish you all the best and good luck in web development and such nice utils development!

    Sincerely,
    Yury Plashenkov

  5. Andrew Smith closed this discussion on 02 Aug, 2012 11:05 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac