Replies: 2 comments 5 replies
-
|
Edit – Removed a previous response because it was incorrect. @FDonald The JSON Options deserialization isn’t detailed very well in our documentation for that feature, we’ll update it soon. In the meantime, I was able to reproduce your issue and get the config JSON into a format that will deserialize properly. In the JSON structure below, notice the "frontends": {
"angular-demo-bff": {
"staticAssetsUrl": "https://localhost:5011",
"matchingPath": "",
"remoteApis": [
{
"pathMatch": "/todos",
"targetUri": "https://localhost:5020/todos/",
"requiredTokenType": "User"
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @ProgrammerAL, I will test your example and send you feedback. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am using BFF Multiclient v 4.1.1, with .Net 10
I want to use LoadConfiguration extension to obtain frontends configuration from config file.
This is my configuration:
{ "defaultOidcSettings": { "authority": "https://XXXXXXXXXXXXXXXXXXXX" }, "defaultCookieSettings": { "sameSite": "None", "securePolicy": "Always" }, "frontends": { "angular-demo-bff": { "staticAssetsUrl": "https://localhost:4200/angular-demo-bff/", "matchingPath": "/angular-demo-bff", "oidc": { "clientId": "angular-demo-bff", "scope": [ "openid", "holder", "api_access", "api_read" ] }, "remoteApis": { "ssidArqNet_api": { "pathMatch": "/api/ssidArqNet", "targetUri": "https://xxxxxxxxxxxxxxxxxxxxxxxx/SsidArqNet.Backend.API", "requiredTokenType": "OptionalUserOrClient" } } }, "implicit": { "matchingPath": "/" } } }I expect that RemoteApis collection and configuration are loaded at startup, but in frontends collection I only can view frontend application, without API´s.
If I configure manually api from configuration object, api redirect work as expected
This is important part of program.cs:
Beta Was this translation helpful? Give feedback.
All reactions