Add YARP reverse proxy for auth request forwarding
Added the `Yarp.ReverseProxy` package and configured the app to use YARP for forwarding specific authentication-related API requests to an external service (`auth-hub`). Updated `Program.cs` to load YARP configuration from a new `yarp.json` file and added middleware to map unmatched requests to the reverse proxy. Replaced old routes and clusters with new routes (`auth-login`, `auth-envelope-receiver-login`) and a new cluster (`auth-hub`) pointing to `https://localhost:9090`. Configured route transformations for path and query parameter adjustments. These changes improve modularity and scalability by enabling dynamic reverse proxy configuration and external service integration.
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
<PackageReference Include="System.DirectoryServices" Version="8.0.0" />
|
||||
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="8.0.1" />
|
||||
<PackageReference Include="System.DirectoryServices.Protocols" Version="8.0.1" />
|
||||
<PackageReference Include="Yarp.ReverseProxy" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user