尝试发布到 introspect 方法会引发错误的请求错误:
"Bad request. Accept and/or Content-Type headers likely do not match supported values."
这是我点击的网址
..oauth2/v1/introspect?token_type_hint=access&token={token}&client_id={ClientId}&client_secret={ClientSecret}"
我正在设置内容类型并接受标题为“application/json”
如果这些不正确,则没有文件说明它们应该是什么。
最佳答案
内容类型需要是 application/x-www-form-urlencoded。
关于Okta 自省(introspection)方法返回错误请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42012408/