Google OAuth DPoP
Adds DPoP proofs and nonce retries to Google OAuth token refresh, so stolen refresh tokens are useless.
Claude's review
7/10 Detailed DPoP proof and nonce retry rules for Google OAuth with clear invariants; narrow topic.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Implement and debug OAuth 2.0 DPoP (RFC 9449) refresh token sender-constraining for WebCrypto, Node.js ES6, and browser runtimes integrating with Google's OAuth platform. Use when configuring non-extractable asymmetric key pairs (P-256), generating DPoP Proof JWTs for authorization code exchange and token refresh, or handling 400 use_dpop_nonce challenge retry loops at oauth2.googleapis.com/token. Don't use for unconstrained OAuth 2.0 flows (where refresh tokens are not bound to a client key pair), or for Google Cloud IAM / service account authentication.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: dpop-adoption
metadata:
version: "1.0.1"
category: Identity
description: >-
Implement and debug OAuth 2.0 DPoP (RFC 9449) refresh token sender-constraining
for WebCrypto, Node.js ES6, and browser runtimes integrating with Google's OAuth
platform. Use when configuring non-extractable asymmetric key pairs (P-256),
generating DPoP Proof JWTs for authorization code exchange and token refresh, or
handling 400 use_dpop_nonce challenge retry loops at oauth2.googleapis.com/token.
Don't use for unconstrained OAuth 2.0 flows (where refresh tokens are not bound
to a client key pair), or for Google Cloud IAM / service account authentication.
---
# DPoP Adoption & Identity Security Architecture
Demonstrating Proof-of-Possession (DPoP, RFC 9449) secures OAuth 2.0 refresh
tokens against interception and replay attacks by cryptographically binding them
to a private key held exclusively by the client. In Google's OAuth 2.0 platform,
DPoP binds the refresh token at the token endpoint, while access tokens issued
for Google APIs are standard Bearer tokens (`token_type: "Bearer"`).
## 1. Core Cryptographic & Architectural Invariants
When implementing DPoP helpers or upgrading HTTP clients, you MUST adhere to the
following strict security invariants:
### A. Universal WebCrypto & Runtime Compatibility
- In modern ES6 JavaScript (`"type": "module"` for Node 18+ and browsers),
ALWAYS access `globalThis.crypto` directly after verifying the environment
context.
- **NEVER** import legacy CommonJS modules via `require('node:crypto')` or
reference browser-scoped `window.crypto`, as these cause module
initialization crashes across hybrid runtimes.
### B. Hardware-Backed Non-Extractable Key Persistence
- Generate an Elliptic Curve key pair on the SECP256R1 (`P-256`) curve: `{
...From google's repository, Apache-2.0 licence.
Related skills
-
Checked
Codebase quality audit
Audits a whole code repo for bugs, security holes, slow paths and dead code, ranked in plain English.
7/101 credit -
Checked
Security and CVE audit
Runs a security and CVE audit on code in any language and scores it out of 100, with false alarms filtered.
7/101 credit -
Checked
OWASP code review
Reviews code for security flaws using the latest OWASP Top 10 lists, including those for AI and agent apps.
7/101 credit -
Checked
Pull request security review
Reviews one pull request for exploitable security holes only, filtering out false positives before reporting.
7/101 credit -
Checked
Code security hardening
Hardens code that handles user input, logins and data against the OWASP Top 10, starting from a threat model.
8/101 credit -
Checked
Security incident response
Runs a security incident from detection to closure, including containment, communication and the review after.
7/101 credit