boundless-artist-2317
06/25/2024, 4:30 PMchilly-king-10285
06/25/2024, 4:31 PMchilly-king-10285
06/25/2024, 4:31 PM/.well-known/jwks.json
endpoint[^3^]. This endpoint contains the public keys for verifying ID tokens and JWT access tokens[^8^]. In Ory, JWK endpoints require a set-id
which corresponds to the specific set of keys you want to interact with. The default set-id
values are hydra.openid.id-token
for OpenID Connect ID Tokens and hydra.jwt.access-token
for JWT Access Tokens[^3^]. To manage these keys, you can use the JWK endpoints to retrieve, rotate, or otherwise manage these default key sets[^3^]. For example, to rotate cryptographic keys in Ory, you can use the JSON Web Keys API[^4^]. You can also use the Ory API to create or update a JSON Web Key Set[^6^][^7^]. If you want to use your own keys instead of letting Hydra generate the JWKs for you, you can use the PUT /admin/keys/{set}
and PUT /admin/keys/{set}/{kid}
endpoints[^5^][^7^]. To learn how Ory Identities supports JWTs to manage sessions, you can read the Session management documentation[^9^]. [^1^]: (https://www.ory.sh/docs/hydra/jwks) [^2^]: (https://www.ory.sh/docs/hydra/jwks#default-cryptographic-keys-in-ory) [^3^]: (https://www.ory.sh/docs/oauth2-oidc/jwt-access-token#json-web-token-validation) [^4^]: (https://www.ory.sh/docs/hydra/jwks#how-to-rotate-cryptographic-keys) [^5^]: (https://www.ory.sh/docs/reference/api) [^6^]: (https://www.ory.sh/docs/reference/api) [^7^]: (https://www.ory.sh/docs/reference/api) [^8^]: (https://www.ory.sh/docs/hydra/jwks#the-role-of-well-knownjwksjson) [^9^]: (https://www.ory.sh/docs/security-model#what-about-json-web-tokens)