Hi, I was trying to get the grant_type "urnietfparamsoauthgrant-type:jwt-bearer" working with hydra 2.3.0 locally. I followed this doc: https://www.ory.sh/docs/hydra/guides/jwt#using-jwts-as-authorization-grants
From the doc and also from the RFC (https://datatracker.ietf.org/doc/html/rfc7523#section-2.1) I assumed that a client_id and a client_secret is not necessary. But after trying a lot of config variants and looking into the code I found that they are necessary. So I assume that either the Ory docs are incomplete or the implementation is wrong.
c
curved-ram-6189
07/28/2025, 8:54 PM
It depends on your OAuth2 client config. If you set your client to require "client_secret_post" then it is required in the body. If you set it to "client_secret_basic" then the client credentials are required in the header.