Quickest way to enable default jwt auth for the docker-compose repo?

Hi,
I’ve gone through the Authorization docs for enabling default ClaimsMapper and default Authorizer.

It looks like it requires editing the code and rebuilding the image through the NewServer functionality. Is there any way to enable default authentication on all requests through a config file or through environment variables?

Tried the Authorizer sample at sample-server repo but it seems broken as confirmed by an issue.

I want to disable any API request that doesn’t have a valid JWT token privilege.

Would love to know what’s the easiest way to achieve the desired functionality.

Hi sorry for late reply. Temporal provides a default authorizer and claims mapper that supports JWT.
Would need to configure the authorization section in your config (see the env vars you would need to set here).
To enable default claims mapper and authorizer try setting:

`TEMPORAL_AUTH_AUTHORIZER=default`
`TEMPORAL_AUTH_CLAIM_MAPPER=default`