How does fast-gatewate operate features like Authentication & Authorisation?
Closed this issue · 1 comments
phuoctech commented
Hi,
I've read your medium article and your sample code. I just only see that fast-gateway handle as a proxy, recevei a request and pass it to another server. How about other feature such as authenticatin and authorization, logging, cache..?
jkyberneees commented
Hi @phuocnguyen286, thanks for reaching out for help.
It is actually very simple, fast-gateway is built of on of https://www.npmjs.com/package/restana, so you can use connect-like middlewares. Optionally you can also use Expressjs as a base framework.
Developers can just connect global and route level middlewares (as described in the documentation). Please see a combined example here:
Do not hesitate to contact us again if needed.
Regards