Separate authentication and entitlements, add federated DRM#66
Draft
Separate authentication and entitlements, add federated DRM#66
Conversation
The existing `auth` property on Release Documents conflated authentication (how to present credentials) with authorization (whether a user may access a package). This change separates the two concerns and adds a federated entitlement verification protocol: - Narrow `auth` on releases to repository authentication only - Add `entitlements` property to Metadata Documents for vendor-controlled access policy (subscription, purchase, license-key, free-registration) - Add `FairEntitlementService` DID Document service type as trust anchor - Define entitlement verification protocol with JWT-based proofs - Write the ext-auth.md authentication methods extension (bearer, basic, oauth2) - Add entitlement types to the registry - Update implementation guide and docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Joost de Valk <joost@altha.nl>
331484c to
d456f05
Compare
Member
|
The approach works for me. Background for other reviewers: TYPO3 hackathon discussion of how deeply FAIR should get into this - the concept has always existed, with placeholders in the spec. The approach needs to remain agnostic about the authentication method or platform, not requiring a specific type - e.g., maybe it's not based on a license key; actual implementation should also support an expiry date or next-reauth check so it doesn't have to be done on. every. single. page. load. |
- Change `provides` from empty array `[]` to empty object `{}` in both
test data files (spec requires provides to be a map/object)
- Add a security contact to did_plc_m5tfrwxd3btacxlstcvop2ib.json
(spec requires at least one security contact)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Joost de Valk <joost@altha.nl>
140 characters is too short for a meaningful package description. 250 characters allows 1-2 sentences while still keeping it concise. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Joost de Valk <joost@altha.nl>
…' into feature/separate-auth-entitlements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auth(repository authentication) fromentitlements(vendor-controlled access policy), resolving the conflation of authentication, authorization, and DRM in the existingauthproperty.FairEntitlementServiceas a new DID Document service type, giving vendors a trust anchor for entitlement verification that survives repository changes.ext-auth.mdextension definingbearer,basic, andoauth2authentication methods (previously empty).subscription,purchase,license-key,free-registration.How it works
FairEntitlementServicein their DID Document (trust anchor)entitlementswith type, service URL, and user-facing hintsThis means vendors control access regardless of which repository serves their package, and users keep their entitlements when packages move between repositories.
Files changed
specification.md— Core spec changes (auth narrowing, entitlements, DID service, verification protocol, flow diagrams, description limit)schemas/metadata.schema.json— Updated description maxLength from 140 to 250ext-auth.md— Authentication methods extension (bearer, basic, oauth2)registry.md— Added entitlement types tabledocs/implementing/restricted.md— Updated implementation guidedocs/restricted.md— Updated user-facing overviewTest plan
auth-only packages still work🤖 Generated with Claude Code