You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With service discovery in aspire it's easy to give resources references to each other and register http clients that resolve to a particular app.
Is there a way to leverage it in other places to get a url to a service, particularly between web apps? I'm thinking for example if I've got identity server and a web app using it:
Where I have to configure things like 'authority' and 'redirectUri' etc. (on both ends) , can I get these Uri's via aspire/service discovery?
I can see it does add urls to configuration in the 'services' section, so I can pull things out via IConfiguration (don't know if there's a neater mechanism?). But, when deployed to Azure container apps, these config urls aren't to the custom binding that I've applied to the container app (just the generic/random Azure assigned ones, I've not put a wildcard binding at the cae level). Is there a way for it to know about these and fetch via some service discovery mechanism?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
With service discovery in aspire it's easy to give resources references to each other and register http clients that resolve to a particular app.
Is there a way to leverage it in other places to get a url to a service, particularly between web apps? I'm thinking for example if I've got identity server and a web app using it:
Where I have to configure things like 'authority' and 'redirectUri' etc. (on both ends) , can I get these Uri's via aspire/service discovery?
I can see it does add urls to configuration in the 'services' section, so I can pull things out via IConfiguration (don't know if there's a neater mechanism?). But, when deployed to Azure container apps, these config urls aren't to the custom binding that I've applied to the container app (just the generic/random Azure assigned ones, I've not put a wildcard binding at the cae level). Is there a way for it to know about these and fetch via some service discovery mechanism?
Beta Was this translation helpful? Give feedback.
All reactions