Title: test: add coverage for acl:AuthenticatedAgent by melvincarvalho · Pull Request #61 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: test: add coverage for acl:AuthenticatedAgent by melvincarvalho · Pull Request #61 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: test: add coverage for acl:AuthenticatedAgent by melvincarvalho · Pull Request #61 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary Adds test coverage for acl:AuthenticatedAgent functionality, addressing issue #58. Changes Added integration test in test/auth.test.js that validates acl:AuthenticatedAgent behavior Test creates a resource with a custom ACL using acl:AuthenticatedAgent Verifies three critical scenarios: ❌ Anonymous/unauthenticated users are denied access (401) ✅ Resource owner has access (200) ✅ Any authenticated user has access (200) - key distinction Test Approach The test: Creates two test pods (authuser1 and authuser2) Creates a resource under authuser1/authenticated-only/test.txt Applies a custom ACL with acl:AuthenticatedAgent to the parent container Validates access control for all three user types Why This Matters This test validates the key semantic difference between: Access Type Anonymous Owner Other Authenticated foaf:Agent (public) ✅ ✅ ✅ Specific agent (private) ❌ ✅ ❌ acl:AuthenticatedAgent ❌ ✅ ✅ The implementation already works correctly (exists in src/wac/parser.js and src/wac/checker.js), but this test ensures the behavior is validated and won't regress. Related Fixes #58 W3C ACL Ontology - Official spec Web Access Control Spec AuthenticatedAgent Discussion
Open Graph Description: Summary Adds test coverage for acl:AuthenticatedAgent functionality, addressing issue #58. Changes Added integration test in test/auth.test.js that validates acl:AuthenticatedAgent behavior Test c...
X Description: Summary Adds test coverage for acl:AuthenticatedAgent functionality, addressing issue #58. Changes Added integration test in test/auth.test.js that validates acl:AuthenticatedAgent behavior Test c...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/61
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:2ca34321-8804-e552-4797-dd11444eea58 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 879C:392487:44834C:5F504B:69774DF6 |
| html-safe-nonce | 7b8de193f8ad28585d19b4857ec83bdd492bc533400703802cc9b343849f3417 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzlDOjM5MjQ4Nzo0NDgzNEM6NUY1MDRCOjY5Nzc0REY2IiwidmlzaXRvcl9pZCI6IjI4OTM3Mzk3ODM3MjcwNDIwMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 74ef290c3292a976acdb1adcc372704fee699b91a86cb1e2101647f78c7e4ca5 |
| hovercard-subject-tag | pull_request:3151492918 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/61/checks |
| twitter:image | https://avatars.githubusercontent.com/u/65864?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/65864?s=400&v=4 |
| og:image:alt | Summary Adds test coverage for acl:AuthenticatedAgent functionality, addressing issue #58. Changes Added integration test in test/auth.test.js that validates acl:AuthenticatedAgent behavior Test c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width