Hello, Currently our architecture is based on AspNetZero .net core and Angular4. We have a micro service that will get some requests from the main api and store some data to its own DB. We want to use AspNetZero for that service to get (Audit Trail, exception handling, Swagger, Automapper, Generic Repo, etc..) , yet we don't want to use the full functionality, we want to replace Authorization from users and multi tenancy to, client_app authorization between services.
So the new service should only validate a client key, not the user himself (maybe validate the request host IP).
As you can see, there will be a lot of files and entities which we don't need will be added to our code base, so is there any way that we can use sub modules ? I saw that ABP and Zero Module are separated into separate nuget packages, but I can't find any documentation on how to properly use them together.
Thanks in advance
1 Answer(s)
-
0
Hi,
If you didn't want authotization, I would suggest you to start with free templates (uncheck module-zero from <a class="postlink" href="https://aspnetboilerplate.com/Templates">https://aspnetboilerplate.com/Templates</a>). However, authentication in microservices is a bit complicated stuff. You probably want to use IdentityServer as a standalone authentication server and just add Jwt bearer auth middleware to your microservice that validates auth token from the server. For the main app, you first get a token from the server and call your microservice with this token.
That's a specific scenario and we don't provide a solution for such a model. I don't meen AspNet Zero does not support it. I mean we (as Volosoft) don't provide a pre-built solution for it. So, you should investigate, design and implement such a system. You can start by understanding IdentityServer4 for instance.