doufeng1249 2015-07-23 17:52
浏览 38

Laravel App的多个身份验证系统

I am developing a typical PHP app which will be accessed in two ways

  1. Single Page application using session based authentication
  2. API based using OAuth authentication

Laravel has native support for Session based authentication and there are good packages to enable OAuth authentication but I need a combination of both. So a user accessing the app using example.com will be authenticated based on session and user acessing the app using api.example.com will be authenticated using OAuth/Token.

Should I write my own middleware to accomplish that or there are other optimal solutions for that?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥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开发资料及相关开发。
    • ¥15 怎么配置广告联盟瀑布流
    • ¥15 Rstudio 保存代码闪退