-
Notifications
You must be signed in to change notification settings - Fork 0
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
402 Payment Required #2
Comments
|
The tricky part here is the format of that Found some prior art: https://github.com/interledgerjs/ilp-fetch/blob/master/index.js#L49. So omitting the
|
Supported method (from here:
|
And reverse-engineering from here, a valid
|
Implementing this in NSS at nodeSolidServer/node-solid-server#1577 |
Done |
Similar to anyone logged in
we introduce "anyone who paid"; we'll need to pick a predicate similar to
acl:AuthenticatedAgent
, for instanceacl:PayingAgent
.One test: 401 if you haven't authenticated at all and authenticating may help
acl:agentClass acl:PayingAgent
Then the server should give a 401 response like it normally would
One test: 402 if you haven't authenticated and paying is the only way in
acl:agentClass acl:PayingAgent
Then the server should give a 402 response, along with a
WWW-Pay
header, for instance:Another test: 402 if you haven't paid
acl:agentClass acl:PayingAgent
Then the server should give a 402 response, along with a
WWW-Pay
header, for instance:Another test: OK if paid
acl:agentClass acl:PayingAgent
Then the server should give a 200 response
The text was updated successfully, but these errors were encountered: