0

I am trying to develop an application using Backbonejs and SLIM php framework. Now I need to develop a user login. I read several posts in stackoverflow. Some of them are

How can I deny users access to parts of my Backbone App if they have not logged in?

Backbone.js Security

Backbone.js and user authentication

backbone.js + require.js + user authentication

backbone.js - handling if a user is logged in or not

I would like to know which is the appropriate and secure process/way in this regard ??

Community
  • 1
  • 1
PHP PHP
  • 55
  • 3
  • 8
  • 1
    each question is very broad. this question is a very large topic. I'm not sure this is going to survive moderation. – cdanea Nov 19 '14 at 00:39
  • use whatever suits you and you're comfortable with, it'll evolve with time ;) of course don't be afraid to refactor – coding_idiot Nov 19 '14 at 06:14

1 Answers1

0

I agree with the first comment this is a very broad topic. For a real application I'd recommend finding a solution that already exists and incorporating it into your project (there is a lot that can go wrong). I cannot give you many recommendations, but I have used UserCake with Slim successfully. I've read about, but not used, other authentication systems that use Slim's middleware. I'd think you would want to find one that fits your needs, probably one that can handle AJAX with your Backbone front end.

On the other hand building your own can be an educational experience. I did it once in plain PHP (warning do not use that project) just to appreciate solutions that already exist. I gained a better understanding of salting, hashing, sql injection and security in general.

Deplicator
  • 34
  • 5