Validate API with Authlogic

前端 未结 2 1136
后悔当初
后悔当初 2021-02-11 06:15

I\'m using Authlogic for authentication in my app, using the standard User and UserSession models. I\'m building an API into my app, and I want to authenticate API access with

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-11 06:58

    Sure, you can have two models acts_as_authentic. Set up the Company with the minimum Authlogic db fields , and use it's single_access_token for API access. Note that your API will not know which User is using the system, just the Company.

提交回复
热议问题