shell - 使用 cURL 向 API REST 验证 OAuth2
问题描述
我这里有个小问题。我一直在尝试使用 cURL 命令对 REST API 进行身份验证(协议 OAuth2)。我使用以下命令行:
curl -X POST -d "client_id=login_id&client_secret=password&grant_type=client_credentials" http://localhost:9001/rest/oauth/token
但它不起作用,命令返回:
{"status":"error","message":"Parameter is required for method Load."}
但我不知道他们正在谈论的参数。你知道问题可能来自哪里吗?
解决方案
推荐阅读
- node.js - Discord.js 音乐机器人不响应第一个音乐请求
- java - 如何在关键短语之间获取字符串的某个部分(java)
- python - Python 无法访问命令行参数
- flutter - 可滚动屏幕 - Flutter
- python - OpenCV Python-过滤矩形以找到微型汽车的道路中心线
- javascript - ajax 没有获取会话
- php - Laravel 验证 - 不同的数组字段不起作用
- django - Django 模型字段未显示在管理页面中
- firebase - Firebase 模拟器:datasnapshot.ref 抛出“无法解析 Firebase url ...”
- python - 根据索引列表从 numpy 数组中获取和替换值