duan19780629 2013-03-05 19:11
浏览 56
已采纳

基于PHP的Azure网站的身份验证选项?

I am writing a simple admin tool in PHP for my own personal use that I would like to host on the free Azure Websites tier. I need to secure the site through a simple authentication scheme such as .htpasswd under *NIX servers.

Are there any recommended approaches to do this when running the site in PHP?

I have looked at the options in web.config, however they all appear to require a Windows user-account against which to authenticate. I have taken a look at Windows Azure Basic Authentication but I'm not too sure how I could run appcmd.exe against this website.

I have checked out the Windows Azure Active Directory integration options, but I can't see anything I can call from PHP (is there a RESTful API I can call maybe?).

I don't particularly want to write my own authentication handler and don't particularly want to run a micro-instance Linux VM....

  • 写回答

2条回答 默认 最新

  • dongshai2022 2013-03-07 01:43
    关注

    If you are looking for simple authentication you can hard code the username and password combination in the login script itself and the info will be protected. If that does not satisfy your requirement you can use free version of mysql and store credentials their before using it. these two options are the simplest and free you can use. Also Active Directory or UAC based auth are overkill for your small project.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题