简体   繁体   English

Node.js 互联网打印协议 (IPP) API Oauth2 授权

[英]Node.js Internet Printing Protocol (IPP) API Oauth2 authorization

I was wondering how can I use the Node.js IPP api to add oauth2.0 authentication我想知道如何使用 Node.js IPP api 添加 oauth2.0 身份验证

I'm following this GitHub guide: https://github.com/sealsystems/node-ipp我正在关注这个 GitHub 指南: https://github.com/sealsystems/node-ipp

However, I need to pass an Oauth bearer token along with the request.但是,我需要将 Oauth 不记名令牌与请求一起传递。

Any ideas how?有什么想法吗?

It looks like the opts parameter in method "request" can be used to forward an "Authentication" header.看起来方法“request”中的 opts 参数可用于转发“Authentication”header。 So you'd have to fork the library and extends it to your needs.因此,您必须分叉库并将其扩展到您的需要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM