-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make AuthN/AuthZ of each channel explicit #155
Comments
I think the first step would be to make it explicit when Capability URL is being used for the receiveFrom and sendTo. I think we could simply define an individual {
"@context": [
"https://www.w3.org/ns/solid/notification/v1"
],
"id": "https://channel.example/ac748712",
"type": "WebhookChannel2023",
"authScheme": "CapabilityURL",
"topic": "https://example.org/guinan/profile",
"sendTo": "https://webhook.example/d4cf3f19",
"startAt": "2023-01-01T07:00:00.000Z",
"endAt": "2023-01-01T09:00:00.000Z",
"rate": "PT5M",
"state": "e75-TFJH"
} In case of the StreamingHTTP channel we could add alias to JSON-LD context {
"@context": [
"https://www.w3.org/ns/solid/notification/v1"
],
"id": "https://channel.example/guinan/profile",
"type": "StreamingHTTPChannel2023",
"authScheme": "SolidOIDC",
"topic": "https://example.org/guinan/profile",
"receiveFrom": "https://example.org/guinan/profile.notifications",
"startAt": "2023-01-01T07:00:00.000Z",
"endAt": "2023-01-01T09:00:00.000Z",
"rate": "PT5M",
"state": "e75-TFJH"
} |
Are there any use cases where the authScheme for a specific notification protocol wouldn't be the same in all occurrences? I mean future-proofing is fine, but at some point the continual atomization of concepts just adds complexity. |
Since we want to describe the auth scheme for a specific URL, given that besides receiveFrom and sendTo we will also have URLs to unsubscribe and/or update subscriptions, it might make more sense to use that specific URL as the subject in the statements, so the examples above could change to: {
"@context": [
"https://www.w3.org/ns/solid/notification/v1"
],
"id": "https://channel.example/ac748712",
"type": "WebhookChannel2023",
"topic": "https://example.org/guinan/profile",
"sendTo": {
"id": "https:/webhook.example/d4cf3f19",
"authScheme": "CapabilityURL"
},
"startAt": "2023-01-01T07:00:00.000Z",
"endAt": "2023-01-01T09:00:00.000Z",
"rate": "PT5M",
"state": "e75-TFJH"
} {
"@context": [
"https://www.w3.org/ns/solid/notification/v1"
],
"id": "https://channel.example/guinan/profile",
"type": "StreamingHTTPChannel2023",
"authScheme": "SolidOIDC",
"topic": "https://example.org/guinan/profile",
"receiveFrom": {
"id": "https://example.org/guinan/profile.notifications",
"authScheme": "SolidOIDC"
},
"startAt": "2023-01-01T07:00:00.000Z",
"endAt": "2023-01-01T09:00:00.000Z",
"rate": "PT5M",
"state": "e75-TFJH"
} |
As mentioned during the call, the matrix of current channel types and auth schemes: receiveFrom
sendTo
I think we need to support more than one channel type. Also keeping in mind that the ecosystem needs to be evolving. This year Capability URL might be the most accessible. Next year we may get something out of solid/specification#504. I don't think there is a need to update channel types as the ecosystem evolves. Something like the suggested I also would like to acknowledge that we will need a section in Solid Protocol (or a separate document) that requires a specific common subset of channel types and auth schemes to be supported for given version of Solid Protocol. |
Currently each channel doesn't specify AuthN/AuthZ method which it relies on. Instead we have implicit relying on what Channel type defines. I think each channel should specify what AuthN/AuthZ the receiver or the sender should use when receiving or sending notifications.
I'm going to track this issue inline in:
Related issues:
The text was updated successfully, but these errors were encountered: