Subscription Access
Product page
Kowal Subscription Suite — kowal.co
Description
Determine whether a customer may perform a particular action on a resource at a given time.
For whom
For support staff diagnosing access to lessons or materials and developers connecting protected resources.
Features
- Register a resource for a website.
- Grant or revoke access by source, action and customer.
- Explain a decision at the current time or an explicit timestamp.
Installation
This component is included in Kowal Subscription Suite. Follow the suite installation instructions.
Configuration
- Identify the website, customer, resource type, resource ID and action.
- Register the resource and issue a time-bound grant through your fulfillment integration. Retain its source so it can be traced or revoked.
Requirements / notes
The access check evaluates the grant for the requested action. Checking another website or time can produce a different decision.
FAQ
Can I check access as it stood at a specific time?
Pass an RFC 3339 timestamp using the --at option. The explain command reads the decision without creating a grant.
Verify the installation
bin/magento module:status Kowal_SubscriptionAccess
For a known grant, replace W, C and TYPE:ID with its website, customer and resource. Run bin/magento kowal:subscription:access:explain --website-id=W --customer-id=C --resource=TYPE:ID --action=view. Repeat with a timestamp outside the grant period and compare the decisions.