openaccess
v1.0.0Logicsrc OAuth grant hub (openaccess.logicsrc.com)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Who Am I
The principal behind the token, the grant it rides on, and its scopes and limits.
my_grants My Grants
Every grant the principal gave, per app, with children delegated to agents.
| Parameter | Type | Description |
|---|---|---|
app | string | Only this app, by id. |
my_entitlements My Entitlements
Every product the principal holds, with pay, cancel, manage and promote links filled in, and which apps honour each.
delegate_grant Delegate Grant
Hand a narrower grant to an agent: a subset of this token's scopes, limits no larger, an expiry no later. Answers a refresh token for the agent, shown once.
| Parameter | Type | Description |
|---|---|---|
scope * | string | Space-separated scopes, a subset of the parent's. |
expires_in | integer | Seconds until the child expires. |
for | string | The agent's OpenProfile.md URL, so the app can see who holds it. |
grant | string | Which of the principal's grants to delegate from. Defaults to the token's own grant. |
lifetime | string | e.g. "500 USD" |
per_call | string | e.g. "5 USD" |
per_day | string | e.g. "50 USD", a rolling day |
revoke_grant Revoke Grant
Revoke one of the principal's grants and every child delegated from it. The app hears at once.
| Parameter | Type | Description |
|---|---|---|
id * | string | The grant id. |
cancel_entitlement Cancel Subscription
Ask the seller to cancel. The standing stays until the seller reports the cancellation; the seller's cancel link comes back too.
| Parameter | Type | Description |
|---|---|---|
id * | string | The entitlement id, from my_entitlements. |
check_entitlement Check Entitlement
Does the principal hold this product in good standing.
| Parameter | Type | Description |
|---|---|---|
product * | string | <host>/<slug> |
list_apps List Apps
The apps this hub knows: their scopes, what they sell, what they honour.
| Parameter | Type | Description |
|---|---|---|
q | string | A word to match. |
get_app Get App
One app in full: its descriptor as the hub last read it.
| Parameter | Type | Description |
|---|---|---|
id * | string | The app id: its host. |
register_app Register App
Register an app by any URL on its origin. The hub reads /.well-known/openaccess.json there and lists what it found.
| Parameter | Type | Description |
|---|---|---|
url * | string | The app's URL. |