最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to setup OAuth 2.0 server using loopback - Stack Overflow

programmeradmin0浏览0评论

I want to setup an OAuth 2.0 Server using Loopback using a package called loopback-ponent-oauth2

The documentation is here : +2.0#OAuth2.0-UsingtheOAuth2ponent

But it is very unclear, what models should i create and what rest endpoint should be defined?

Please help!

I want to setup an OAuth 2.0 Server using Loopback using a package called loopback-ponent-oauth2

The documentation is here : https://docs.strongloop./display/public/LB/OAuth+2.0#OAuth2.0-UsingtheOAuth2ponent

But it is very unclear, what models should i create and what rest endpoint should be defined?

Please help!

Share Improve this question asked Oct 5, 2016 at 12:33 nikhil.g777nikhil.g777 9043 gold badges12 silver badges24 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6 +50

First of all, it's important to note that the documentation might be outdated:

After IBM’s acquisition of StrongLoop, we have integrated strong-gateway with the latest product offering from IBM called API Connect.

In any case, if you need some directions on how the server is set to provide OAUTH 2 authentications you should look at the following git project and pay a close attention to the following:

  • strong-gateway/server/server.js - gives you an idea of which modules and methods to create inside your server script.
  • strong-gateway/test/ * - has a bunch of scripts that shows how it is used in an authorization context.

Git project using OAuth2.0 with the StrongLoop API Gateway: https://github./strongloop-archive/strong-gateway

发布评论

评论列表(0)

  1. 暂无评论