Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support directed identity for non-interactive grants #506

Open
2 tasks
raducristianpopa opened this issue Oct 9, 2024 · 0 comments
Open
2 tasks

Support directed identity for non-interactive grants #506

raducristianpopa opened this issue Oct 9, 2024 · 0 comments

Comments

@raducristianpopa
Copy link
Member

raducristianpopa commented Oct 9, 2024

Context

When requesting a grant, the client field represents the wallet address of the entity that makes the request. To address the privacy concerns for the in browser implementation of Web Monetization we want to support a directed identity approach for non-interactive grants.

More context: Open Payments User Wallet Directed Identity Document

Todos

  • The client field should be an object that accepts the following properties: jwk or walletAddress (mutually exclusive - only one of them)
    • jwk should be constrained to the format:
      json-web-key:
      type: object
      properties:
      kid:
      type: string
      alg:
      type: string
      description: 'The cryptographic algorithm family used with the key. The only allowed value is `EdDSA`. '
      enum:
      - EdDSA
      use:
      type: string
      enum:
      - sig
      kty:
      type: string
      enum:
      - OKP
      crv:
      type: string
      enum:
      - Ed25519
      x:
      type: string
      pattern: '^[a-zA-Z0-9-_]+$'
      description: The base64 url-encoded public key.
  • Backwards compatibility for the client field - should be available to use in both formats (string and the new object) for some time to allow people to migrate.
@raducristianpopa raducristianpopa changed the title [PLACEHOLDER] Support directed identity for non-interactive grants Support directed identity for non-interactive grants Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant