for generate jwks should we use Medplum CodexHealt...
# general
y
for generate jwks should we use Medplum CodexHealth Secret value?
c
Hm, I don't think I understand the question. You can create the jwks entirely from scratch.
y
what should be secret value for jwks?
just like I setup own EHR System configuration, with endpoint as https://api.medpum.com and client_id and secret from here https://app.medplum.com/ClientApplication/992cb882-7e65-4385-aef6-36b7cd9d7b92/details however I suppose secret should be rsa key or something like that
or if the key is ours, where should I paste public key in app.medplum.com ?
r
Hi Yury! So I think the best resource is section 1.6 of this Medium article (https://darutk.medium.com/oauth-2-0-client-authentication-4b5f929305d4) * You can generate the public/private key just like you would generate another cryptographic key pair (see this Medium article for an example [https://darutk.medium.com/jwk-representing-self-signed-certificate-65276d70021b]) * This Google discussion talked about how to "host" the jwks [https://www.googlecloudcommunity.com/gc/Apigee/Publish-and-generate-JWKS/td-p/9962]. Key Quote: > You can host this as a static file on any any trustworthy web server. It makes sense to put it on the main .com site for your company or organization. A good pattern is to use the .well-known url path segment which is described in RFC 5785. Basically something like https://www.yourcompany.com/.well-known/jwks.json . On the details page for
ClientApplication
you can specify the
jwks_uri
that points to where you key is hosted: https://app.medplum.com/ClientApplication/992cb882-7e65-4385-aef6-36b7cd9d7b92/edit
Hopefully that helps!
173 Views