Repository navigation
Aspire and Microsoft identity platform's IDownstreamApi integration #7035
Unanswered
Meir Blachman (Meir017)
asked this question in
Q&A
Replies: 1 comment 1 reply
|
Meir Blachman (@Meir017) Did you make any progress on this issue? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How would I configure an AppHost for a service that calls another service using Microsoft identity platform ?
consider the configuration https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2/blob/master/6-Call-OwnApi-ManagedIdentity/daemon-console/appsettings.json
{ "MyWebApi": { "BaseUrl": "https://localhost:44372/", "RelativePath": "api/TodoList", "RequestAppToken": true, "Scopes": [ "api://web-api-application-guid/.default" ], "AcquireTokenOptions": { "ManagedIdentity ": { "UserAssignedClientId ": "user-assigned-managed-identity-client-id" } } } }and the application code https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2/blob/master/6-Call-OwnApi-ManagedIdentity/daemon-console/Program.cs
what would the AppHost look like for something like this?
Do I need to change the configuration in the
appsettings.jsonto be:{ "MyWebApi": { "BaseUrl": "https://MyApi/", } }All reactions