tazama-lf / relay-service

This service monitors NATS subjects and then relay published messages to one of the following destinations: REST API or Another pub/sub destination (e.g. NATS, RabbitMQ, Kafka)
Apache License 2.0
0 stars 0 forks source link

Add authentication to Destination if URL #4

Open johanfol opened 1 month ago

johanfol commented 1 month ago

For the Relay Service to be able to submit a report to an authenticated URL, the Relay Service would have to be able to first do an Authentication call (eg. providing a configurable username/password), then do a call to the final URL to submit the response.

This Authentication application would ideally be cached as long as the destination token is still valid; handle refresh-token logic, etc. so as to not have to authenticate for every request if the previous token requested could still be valid.