Abridge連携コードのCIに合成データを使った回帰チェックを加え、同意状態、ノート確認、ログの秘匿、ロールバックなど顧客側の処理を検証します。
- Abridge連携の回帰テストを追加したいとき
- 同意やノート確認の処理を検証したいとき
- ログに機微情報が出ないか確かめたいとき
Canva ConnectのバックエンドにOAuth 2.0とPKCE認証を実装し、コールバック検証や最小権限スコープ、安全なトークン更新を扱うスキルです。
Implement Canva Connect OAuth 2.0 Authorization Code with SHA-256 PKCE on a backend. Use when creating an integration, adding explicit scopes, handling callback state, or rotating single-use refresh tokens. Trigger with: "set up Canva OAuth", "Canva PKCE", "refresh Canva token".
実行スコア 未検証
インストール方法を見るCanva Connectの認可フローを、バックエンドで状態を管理する仕組みとして実装します。連携設定とリダイレクトURIを確認し、要求する権限を明示したうえで、リクエストごとのstateとPKCE verifierをサーバー側に短期間・一度限りで保存します。認可URLの生成、コールバック時のstateや期限、再利用コードの検証、バックエンドでのトークン交換までを扱います。アクセストークンとリフレッシュトークンを暗号化して保存し、ユーザー単位で更新処理を直列化して、新しい単回利用トークンへの置き換えを原子的に行います。連携解除時の失効や、アプリ内のトークン削除も対象です。
Canva連携を新しく作るとき、必要な権限を追加するとき、コールバックのstate検証やリフレッシュトークンの競合を安全に扱いたいときに向いています。ブラウザー側へ秘密情報を出さずに認証境界を設計したい開発者にも役立ちます。
Canva Developer Portalの連携設定、管理されたリダイレクトURI、バックエンドの秘密情報保管庫、同意画面設計が必要です。本番設定からlocalhostやloopbackのリダイレクト先を除き、権限追加時はユーザーの再同意を取得します。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Build authorization as a stateful backend protocol, not a copied token snippet. Keep the PKCE verifier and client secret out of the browser and serialize refresh-token replacement per user.
Configure name, minimum scopes, at least one controlled redirect URI, and secret storage. Remove localhost and loopback redirect hosts from production configuration.
Generate high-entropy per-request state and a PKCE verifier that meets Canva's documented character/length rules. Store both server-side with short expiry and one-time use.
Use Canva's authorization endpoint, S256 challenge method, explicit space-separated scopes, client ID, state, and an exactly registered redirect URI.
Reject missing/mismatched/expired state, repeated codes, unexpected redirect context, and errors before token exchange.
Authenticate the token request using the approved client method, send the verifier and authorization code, validate the response, encrypt access and refresh tokens separately, and discard transient secrets.
Single-flight refresh per user because each refresh token is single-use. Commit the new access token, expiry, and replacement refresh token atomically; reauthorize on unrecoverable failure.
Revoke when required, delete application-held tokens and cached authorization, and record a credential-free receipt.
Canva Connect calls use Bearer access tokens obtained by a backend through OAuth 2.0 Authorization Code with SHA-256 PKCE. Request explicit least-privilege scopes, keep client secrets and tokens out of browser-visible state, and serialize refresh so the replacement single-use refresh token is stored atomically.
Use Read and Grep for discovery and evidence. Use Write or Edit only for the approved artifact, code, configuration, test, or receipt described by this workflow; do not make an unapproved Canva-side change.
A callback consumes a one-time state record and server-held verifier, exchanges the code on the backend, and stores the replacement refresh token in the same transaction that invalidates the prior token.
| Failure | Response |
|---|---|
| State mismatch | Stop the flow and create no token record |
| Verifier missing | Restart authorization; never weaken PKCE |
| Refresh race detected | Serialize by Canva user and retain one authoritative result |
| Scope added later | Update portal configuration and obtain fresh user consent |
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Abridge連携コードのCIに合成データを使った回帰チェックを加え、同意状態、ノート確認、ログの秘匿、ロールバックなど顧客側の処理を検証します。
Abridgeの録音、記録の確認、Epicへの引き渡し、アクセスの不具合を観測情報から切り分け、患者情報を抑えた証拠と担当窓口への引き継ぎ資料を整理するスキル。
同意確認から録音、生成メモの根拠確認、編集、最終確定まで、臨床文書作成の手順と確認ポイントを整理するスキルです。
Abridgeで臨床家が確認した記録内容が、承認済みの手順でEpicの適切なテンプレート欄へ渡るか、テスト記録を使って対応関係や例外を検証するスキルです。
Abridgeの導入・更新判断に向け、利用定着率や業務の完了状況、診療記録の品質、支援負担を契約に基づく費用情報と照らし、継続や改善の選択肢を整理するスキル。
Abridgeの障害調査で、録音や診療記録を含めず、許可した項目だけを集めたサポート用資料と確認用マニフェストを作成します。