Skip to content

Add subject field to AS spec #561

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

Open
3 tasks
njlie opened this issue Mar 11, 2025 · 0 comments · May be fixed by #590
Open
3 tasks

Add subject field to AS spec #561

njlie opened this issue Mar 11, 2025 · 0 comments · May be fixed by #590

Comments

@njlie
Copy link
Contributor

njlie commented Mar 11, 2025

**Note: we can reuse the changes/commits from **https://github.com/interledger/open-payments/pull/504

During a grant request, a client should be able to specify any subjects they might want to acquire information on from the RS. GNAP achieves this through the subject field, though this is currently unimplemented in the OP spec.

Subject Information field specification

TODOs:

  • Add subject field (with sub_id_formats and sub_ids keys) to the Grant Request body spec:

Example:

"subject":  {
     "sub_id_formats": ["uri"],
     "sub_ids":["<wallet address>"]
}
  • Allow access_token to be optional in request body
    • Grant request body should allow for either access_token or subject to be optional: i.e. a grant request can contain just access_token, just subject, both access_token and subject, but cannot be empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant