pnxtech / hydra-router

A service aware router for Hydra Services. Implements an API Gateway and can route web socket messages.
MIT License
60 stars 26 forks source link

allow for header and query string auth #192

Closed tylerhutcherson closed 2 years ago

tylerhutcherson commented 2 years ago

In order to allow ws auth in a browser and from a backend app, this PR allows a client to pass auth with a header or with a query param. Hydra expects one of the two, and forwards it along to the auth service (separate) for validation.

Additionally, this PR improves where and how the authResponse is attached to the UMF body of outbound messages.