keycloak bearer token error - Didn't find publ

2019-06-04 21:52发布

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 -

Status: 401

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 ?

1条回答
We Are One
2楼-- · 2019-06-04 22:47

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.

查看更多
登录 后发表回答