Hello, Looking at the URL to retrieve the public ...
# ory-network
a
Hello, Looking at the URL to retrieve the public key for the JSON Web Token verif, it seems that it constantly changes if I hit CTRL + MAJ + R (/.well-known/jwks.json) and never corresponds to the keys I have created locally and pushed to the network via ory CLI. How can I retrieve the correct endpoint where my locally generated, pushed public key is situated?
c
Hello, I guess you were trying to set the session to jwt feature right? If so, I guess the best option is to use the already available JWKS from hydra to build your JWT. Here is a link to a former discussion and a way to do that : https://ory-community.slack.com/archives/C05PHQCFL1F/p1706177635041559?thread_ts=1706177063.140499&cid=C05PHQCFL1F. Hope this helps
a
Hello @careful-rain-13694, thanks for your answer. I am using Ory Network. When I query the URL, I always get a different output if I refresh my cache which surely does not make sense. The alternative is to generate a public key and store it locally, I suppose. I am just curious if there is a way to have the public key stored on Ory network. That would be way easier to maintain than managing the public key myself.
Ok in fact the result is always the same but the order of the keys varies.
c
Yes indeed, the order may change but the keys are always the same. Except if you need to rotate them, you'd have to do the same operation again but as this operation already requires a manual operation, this should not require more effort to align the configuration accordingly.