Skip to content

Browser extension reference: HTTP 402 detection and cookie unlock #13

Description

@possiblyshellen

Summary

Build an OPE-compliant browser extension demonstrating HTTP 402 detection, OPE header parsing, and cookie-based content unlock.

Context

Listed under Future Work Section 24 as a planned reference implementation.

Responsibilities

  • Intercept HTTP 402 responses on pages matching publisher domains
  • Parse OPE response headers (Link, OPE-Content-Id, OPE-Access-Level, OPE-Unlock-URL)
  • Trigger the unlock flow via the publisher's unlock endpoint
  • Set ope_grant cookie on successful authentication

Related

Spec sections: 11.1 HTTP 402 and OPE Response Headers, 11.2 Cookie-Based Grant Token Transport

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions