Skip to content

v1.6.0

Latest
Compare
Choose a tag to compare
@oklemenz2 oklemenz2 released this 03 Feb 07:37
· 25 commits to main since this release

Fixed:

  • Check authorization and service path before websocket upgrade
  • Reject connection to non-websocket protocol paths
  • Support unauthenticated requests via option cds.requires.auth.restrict_all_services: false
  • Support privileged user, e.g. via dummy auth strategy
  • Fix call to wsDisconnect operation without reason parameter
  • Cast reason parameter for wsDisconnect operation to string
  • Fill baseUrl for websocket requests (necessary for request context specific model in toggle/extensibility scenario)
  • Clean websocket context from internal read-only attributes
  • Normalize client identifier on upgrade request request.id
  • Return 404 when url cannot be associated with a service in upgrade request
  • Parse string values according to operation parameter type in custom formats (e.g. pcp)

Added:

  • reset all contexts via wsContext flag reset: true
  • Support multiple contexts in wsContext with array value for context
  • Document usage of srv.tx(req).emit for tenant and user propagation in WS broadcasting
  • Document usage of wsContext for format pcp and cloudevents