duanpai1920 2014-11-19 00:00
浏览 50

用户使用Backbonejs登录

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 ??

  • 写回答

1条回答 默认 最新

  • dongpai1942 2014-11-19 01:04
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。