-
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
explicit channel auth scheme #182
base: main
Are you sure you want to change the base?
Conversation
I would suggest that you add an implementation guidance box, otherwise spec users will wonder why we are adding channel auth in the examples even though it has no mention in the spec. |
It also shows in the data model as required information on Subscription Service and Notification Channel. Actually that the only change that gets highlighted in the HTML diff. |
That should be "zero, one or many" (I disagree with @csarven 's way of describing, we have argued this previously, because there is no way to indicate that Subscription Service may not advertise this property at all and that would be OK). I would also suggest the property on Subscription Service be called |
I think
If we want it always to be explicit it can't be zero, one of the examples uses |
Plural indicates that a thing is an array. Not having an "s" is the inconsistent thing, imho. I strongly disagree with your definition of consistency.
You could conceivably have a channel that you need to subscribe to (one a server will create on request only), but is otherwise public and does not require authorization (not that I would recommend anyone make one, but consistency demands that we allow such a thing). What I would concede is that if you specify the property, then zero entries makes no sense. But you should be able to skip specifying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together and thinking about this problem/solution. Pardon the late reply.
Approving but see change requests. I'd like to see a short paragraph/section for #authentication-scheme describing a bit further. See review comments.
@@ -779,6 +786,7 @@ <h3 property="schema:name" content="Subscription Service Data Model">Subscriptio | |||
<ul> | |||
<li id="notify-subscription-id">One <code>id</code> property to identify the subscription service.</li> | |||
<li id="notify-channelType">One <code>channelType</code> property to state the <a href="#notification-channel-types" rel="rdfs:seeAlso">notification channel type</a>.</li> | |||
<li id="notify-channelAuthScheme">One or many <code>channelAuthScheme</code> property to state the supported authentication schemes.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't suggest a change to add a paragraph/section (perhaps right after #authentication-authorization or a new subsection of the #protocol section.) The following suggestion would refer to Authentication Scheme.
<li id="notify-channelAuthScheme">One or many <code>channelAuthScheme</code> property to state the supported authentication schemes.</li> | |
<li id="notify-channelAuthScheme">One or many <code>channelAuthScheme</code> property to state the supported <a href="#authentication-scheme">authentication schemes</a>.</li> |
@@ -807,6 +816,7 @@ <h3 property="schema:name" content="Notification Channel Data Model">Notificatio | |||
<ul> | |||
<li id="notify-channel-id">One <code>id</code> property to identify the notification channel.</li> | |||
<li id="notify-channel-type">One <code>type</code> property to state the <a href="#notification-channel-types" rel="rdfs:seeAlso">notification channel type</a>.</li> | |||
<li id="notify-channel-authScheme">One <code>authScheme</code> property to state the authentication scheme used for the channel.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<li id="notify-channel-authScheme">One <code>authScheme</code> property to state the authentication scheme used for the channel.</li> | |
<li id="notify-channel-authScheme">One <code>authScheme</code> property to state the <a href="#authentication-scheme">authentication scheme</a> used for the channel.</li> |
@@ -807,6 +816,7 @@ <h3 property="schema:name" content="Notification Channel Data Model">Notificatio | |||
<ul> | |||
<li id="notify-channel-id">One <code>id</code> property to identify the notification channel.</li> | |||
<li id="notify-channel-type">One <code>type</code> property to state the <a href="#notification-channel-types" rel="rdfs:seeAlso">notification channel type</a>.</li> | |||
<li id="notify-channel-authScheme">One <code>authScheme</code> property to state the authentication scheme used for the channel.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious.. is authScheme
intended to be consumed by SubscriptionClient? Or towards recording what's currently in use (and for unspecified use)?
Is it required / what might not function if omitted?
@@ -807,6 +816,7 @@ <h3 property="schema:name" content="Notification Channel Data Model">Notificatio | |||
<ul> | |||
<li id="notify-channel-id">One <code>id</code> property to identify the notification channel.</li> | |||
<li id="notify-channel-type">One <code>type</code> property to state the <a href="#notification-channel-types" rel="rdfs:seeAlso">notification channel type</a>.</li> | |||
<li id="notify-channel-authScheme">One <code>authScheme</code> property to state the authentication scheme used for the channel.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume "None" will map to notify:None
.. but we mean something like notify:AuthenticationSchemeIsNotUsed
?
I think requiring As for singular/plural, singular suffices for RDF properties as atomic statements / arcs in graph. |
closes #155
TODO
Preview | Diff (doesn't show the changes in code snippets!)