commercetools / merchant-center-application-kit

Tools and components for developing Merchant Center Customizations 🛠
https://docs.commercetools.com/merchant-center-customizations
MIT License
67 stars 27 forks source link

[Idea] Provide a package to help setting up an "external API" server #1444

Open emmenko opened 4 years ago

emmenko commented 4 years ago

It would be helpful to have a package that takes care of most of the setup that an "external API" server would need to work with Custom Applications.

For example, including the JWKs middleware, extracting useful fields from the token, etc.

This would also help with migrations for the API versioning.

tdeekens commented 4 years ago

Maybe just an express middleware, then maybe hapi plugin etc exposing certain things on the request would help plugging things together and getting started. A lot of that cruft we could actually steal from promster which works with many servers by now. Alternatively it could also be a complete server but then that could also build on the previous building blocks. Depends a bit on how much existing infrastructure Custom Apps on the server integrate with or if they start from scratch.

mmaltsev-ct commented 2 years ago

Keeping the idea, with the low priority.