openaccess

v1.0.0
com.profullstack/openaccess Checked 4 days ago Published 25 days ago

Logicsrc 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.

ParameterTypeDescription
appstringOnly 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.

ParameterTypeDescription
scope *stringSpace-separated scopes, a subset of the parent's.
expires_inintegerSeconds until the child expires.
forstringThe agent's OpenProfile.md URL, so the app can see who holds it.
grantstringWhich of the principal's grants to delegate from. Defaults to the token's own grant.
lifetimestringe.g. "500 USD"
per_callstringe.g. "5 USD"
per_daystringe.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.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
id *stringThe entitlement id, from my_entitlements.

check_entitlement Check Entitlement

Does the principal hold this product in good standing.

ParameterTypeDescription
product *string<host>/<slug>

list_apps List Apps

The apps this hub knows: their scopes, what they sell, what they honour.

ParameterTypeDescription
qstringA word to match.

get_app Get App

One app in full: its descriptor as the hub last read it.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
url *stringThe app's URL.