https://github.com/eduardosbcabral/multi-tenant-poc
A poc application to see how the application can handle domain based tenant using a middleware
https://github.com/eduardosbcabral/multi-tenant-poc
Last synced: 2 months ago
JSON representation
A poc application to see how the application can handle domain based tenant using a middleware
- Host: GitHub
- URL: https://github.com/eduardosbcabral/multi-tenant-poc
- Owner: eduardosbcabral
- Created: 2023-03-05T21:32:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T22:02:03.000Z (about 2 years ago)
- Last Synced: 2025-01-13T10:30:01.266Z (4 months ago)
- Language: C#
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# multi-tenant-poc
A poc application to see how the application can handle domain based tenant using a middleware# Usage
You need to add the entry to the hosts file to use the default saved tenant option.
```
127.0.0.1 mt-one.test
127.0.0.1 mt-two.test
```Now you can access the application and see how the middleware checks the domain and the endpoint queries for the right tenant.
```
http://localhost:8081/customer
http://mt-one.test:8081/customer
http://mt-two.test:8081/customer
```