w3c / automotive

W3C Automotive Working Group Specifications
Other
145 stars 68 forks source link

Subscription handling on error or JWT auth issues (timed out) #463

Closed aw-muc closed 1 year ago

aw-muc commented 1 year ago

I did not find any clear instruction about the handling of subscriptions if they run into an error like authentication error.

For example, i have a time based subscription, where the servers sends every 5 seconds notification about the current value I have subscribed with an valid JWT for time X; after time X the internal check runs into an issue, because the JWT is not longer valid; From the documentation the client now gets every 5 seconds an error notification that the JWT is outdated because of auth errors.

Is this a valid behavior, or are there any valid reasons for the severs to close a subscription if he recognizes an error that can't be fixed by the server e.g. JWT is outdated.

UlfBj commented 1 year ago

It is in my view probably a reasonable behavior that a server closes a subscription when it recognizes an error that it cannot fix, and sends an error message to the subscriber.

aw-muc commented 1 year ago

Would it make sense that these type of behavior are documented somewhere; Because at the moment I havn't found any kind of documentation pointing into that direction;

UlfBj commented 1 year ago

@aw-muc It will be documented in the specification, but a discussion and a decision must first take place in the WG. Thanks for bringing this issue up.

UlfBj commented 1 year ago

Fixed in PR478