知识卡片
配置命名OAuth令牌
OAUTH DEFINE <name> <JSON对象>建立命名配置,UPDATE修改,GENERATE|GEN <name>按该配置请求令牌,REMOVE删除条目。随后HTTP调用用WITH-OAUTH <name>引用它;定义配置与发出业务请求是两个动作。这里只保留书中命令职责,具体授权服务器参数和权限需在真实任务中单独确认。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录D:HyperCLI操作参考 · 查看原书依据
OAUTH OAuth 2.0 support .. LOAD [filename] Loads OAuth config file (defaults to oauth.env) .. SAVE [filename] Saves OAuth config file (defaults to oauth.env) .. DEFINE <string> <{ n:v,… }> Creates an entry in the OAuth configuration .. UPDATE <string> <{ n:v,… }> Modifies settings in an existing OAuth configuration .. GENERATEǀGEN <string> Generates an access token using the configuration data .. REMOVE <string> Removes the named item
参考来源
- 位置:《RESTful Web API Patterns and Practices Cookbook》Appendix D. Using the HyperCLI(来源项目book-sources,源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/app04.xhtml)
- 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。
- 原始内容:OAUTH OAuth 2.0 support .. LOAD [filename] Loads OAuth config file (defaults to oauth.env) .. SAVE [filename] Saves OAuth config file (defaults to oauth.env) .. DEFINE <string> <{ n:v,… }> Creates an entry in the OAuth configuration .. UPDATE <string> <{ n:v,… }> Modifies settings in an existing OAuth configuration .. GENERATEǀGEN <string> Generates an access token using the configuration data .. REMOVE <string> Removes the named item