fhir-api-client-security

Audit Canvas plugin security for FHIR API client token and scope compliance.

2|1|Updated Nov 27, 2025
One-click install
npx skills add https://github.com/canvas-medical/coding-agents --skill fhir-api-client-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fhir-api-client-security
Source: https://github.com/canvas-medical/coding-agents/tree/main/canvas-plugin-assistant/skills/fhir-api-client-security
Command: npx skills add https://github.com/canvas-medical/coding-agents --skill fhir-api-client-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides security review guidance for Canvas plugins acting as FHIR API clients, focusing on token management, scope validation, and patient-scoped authorization.

Core Features & Use Cases

  • Security-focused guidelines for OAuth patterns, token handling, and patient-scoped access in plugins.
  • Comprehensive checklists to assess token storage, scope minimization, and secure logging.
  • Use Case: A plugin using Http() to access FHIR endpoints can be reviewed to ensure tokens are retrieved securely from secrets and tokens are not logged.

Quick Start

Review the fhir_client_context.txt for detailed patterns including OAuth authentication methods, token scopes, and patient-scoped token requirements. Apply the guidelines to existing and new Canvas plugins that interact with FHIR APIs to ensure tokens are stored securely and access is properly scoped.

Frequently Asked Questions about fhir-api-client-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure OAuth tokens when calling FHIR APIs from Canvas plugins?

To secure OAuth tokens in Canvas FHIR API clients, retrieve tokens from secrets and ensure they are never logged. Apply the token storage and scope minimization checklist to enforce safe credential handling during security reviews.

What is patient-scoped authorization and how does it apply to FHIR API clients?

Patient-scoped authorization restricts FHIR API access to a specific patient's data context. Canvas plugins acting as FHIR API clients must enforce patient-scoped token requirements to ensure access is properly limited during Http() endpoint calls.

How do I audit a Canvas plugin for FHIR API security vulnerabilities?

Audit Canvas plugin FHIR API security by applying a token and scope checklist during development. Verify OAuth patterns, token handling, scope minimization, and secure logging for plugins using Http() or Canvas SDK data models.

Does this security review guidance work with Canvas SDK data models?

Yes, this security review guidance applies to Canvas plugins using Canvas SDK data models and Http() calls to FHIR endpoints. It enforces token storage, scope minimization, and patient-scoped authorization checklists for these integrations.

What are common token handling limitations when securing FHIR API clients?

Common FHIR API client token handling limitations include unsafe credential storage and insecure logging. Mitigate these risks by following fhir_client_context.txt guidelines to ensure tokens are retrieved securely from secrets and never exposed in logs.

When do I need to perform a FHIR API client security review?

Perform a FHIR API client security review during plugin development and before deployment when your plugin calls FHIR endpoints via Http() or uses Canvas SDK data models, ensuring OAuth authentication and patient-scoped tokens meet security guidelines.