环回-实施自定义身份验证 [英] Loopback - Implementing custom authentication
本文介绍了环回-实施自定义身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在开发REST服务,但我们已经拥有用于管理用户的基础架构.但是我们想利用Loopback的身份验证和授权机制.要求是
We are developing a REST service but we already have an infrastructure in place to manage users. But we want to leverage the authentication and authorization mechanism of Loopback. The requirement is to
- 添加远程方法并接收用户凭据
- 通过存储过程调用手动验证凭据
- 通过环回生成访问令牌
- 继续使用环回授权机制,例如应用程序中的角色
我应该使用 Loopback的第三方登录支持来实现自定义登录服务提供商?我在这方面找不到很好的资源.任何指针将不胜感激.
Should I be implementing a custom login service provider using Loopback's third party login support ? I couldn't find a very good resource on this area. Any pointers would be much appreciated.
推荐答案
请检查以下一些示例,以了解它是否适合您的用例:
Please check some of the following examples to see if it fits your use case:
- https://github.com/strongloop/loopback-example-access-control
- https://github.com/strongloop/loopback-example-passport
- https://github.com/strongloop/loopback-example-access-control
- https://github.com/strongloop/loopback-example-passport
这篇关于环回-实施自定义身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文