keycloak承载令牌错误-找不到指定孩子的publicKey [英] keycloak bearer token error - Didn't find publicKey for specified kid

查看:595
本文介绍了keycloak承载令牌错误-找不到指定孩子的publicKey的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注此文档确保其余服务.我能够获得访问令牌.但是,当我尝试使用令牌来调用服务时,出现了错误-

I am following this document to secure the rest services. I am able to obtain the access token. However when I try to use the token to invoke a service, I am getting the error -

状态:401

WWW-Authenticate Bearer realm ="bkofc",error ="invalid_token", error_description =未找到指定孩子的公钥"

WWW-Authenticate Bearer realm="bkofc", error="invalid_token", error_description="Didn't find publicKey for specified kid"

我在这里想念什么?与领域设置有关吗?

What am I missing here ? Anything to do with the realm settings ?

推荐答案

401实际上只能表示未正确提供令牌.标头授权"需要正确设置.只要正确,它实际上就可以正常工作.

401 could actually only mean, that the token is not provided correctly. The Header "Authorization" needs to be set properly. It actually works fine, when you are doint it right.

此外,您所使用的文档是由一个人编写的,该人确切地知道该为他人做什么,也知道该做什么.可能是您做错了什么,从您的问题中无法识别.

Desides, the document you are using is written by a person, who knows exactly, what to do for people, who know exaclty what to do. So may be you are just doing something wrong, which is not recognisable from your question.

这篇关于keycloak承载令牌错误-找不到指定孩子的publicKey的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆