pub async fn client_credentials_to_token_response<Repo: Repository + Send + Sync, Search: SearchEngine + Send + Sync, Terminology: FHIRTerminology + Send + Sync>(
state: &AppState<Repo, Search, Terminology>,
tenant: &TenantId,
project: &ProjectId,
user_agent: &Option<TypedHeader<UserAgent>>,
token_body: &OAuth2TokenBody,
method: ClientCredentialsMethod,
) -> Result<TokenResponse, OIDCError>