oauth2orize

Securing a nodejs / sailsjs API with OAuth2

爱⌒轻易说出口 提交于 2019-12-08 17:45:45
问题 I have developed a REST API with sailsjs and I'd like to add OAuth2 authorization to secure this API. I'm quite new to OAuth and I'm not sure where to start. I found several modules that could be used for this purposes, for instance oauth2orize and an example of its usage https://github.com/aaron524/sails-oauth2-provider-example but I do not fully understand how this is working internally. Basically, I'll have several clients consuming the API I'm developing: - clients that I trust and that I