"No credentials found for given 'iss'

I create JWT in spring application and I check JWT by kong jwt plugin

JWT is well maded.
But when I request with JWT, the error is shown.
ERROR : {“message”:“No credentials found for given ‘iss’”}

I checked JWT in jwt.io there is “iss” key
“iss”: “a36c3049b36249a3c9f8891cb127243c”

Where is my mistake? How to fix it? please help me

I use this configuration

[ENV ]
kong : 1.2, kubernetes with stable chart and dbless

curl -X GET -H “Authorization: Bearer XXXXX”

apiVersion: configuration.konghq.com/v1
kind: KongPlugin
name: jwt
global: “false”
enabled: true

  • exp
  • nbf
    key_claim_name: iss
    plugin: jwt

apiVersion: configuration.konghq.com/v1
kind: KongConsumer
name: global-consumer
username: GlobalConsumer
custom_id: GlobalConsumer

apiVersion: configuration.konghq.com/v1
kind: KongCredential
name: global-consumer-credentials
consumerRef: global-consumer
type: jwt
key: urn:yourdomain.com
rsa_public_key: |
Key. in. here
-----END PUBLIC KEY-----
algorithm: RS256

Could you solve this? I’m having a similar issue

Please check your consumers.
If your results like this, your configuration is wrong

[root]# curl -k https://xx.xx.xx.xx:8444/consumers

Are you using a custom ingress class?
If so, you need to add ingress class annotation on kong consumer and kong credential

I could fix it. My issue was that my jwt credential wasn’t getting created because of a validation with RS256. Now that I created properly using k8 secrets it’s working fine. Thanks for the reply!