Skip to content
Discussion options

You must be logged in to vote

they require a static callback address for login/logout ect...

Specify a host port and pass that to the application.

builder.AddNpmApp("frontend", "../../app-frontend", builder.Environment.IsDevelopment() ? "dev" : "start")
.WithReference(realtimerules_api)
.WithServiceBinding(hostPort: 8085, containerPort: 3000, scheme: "http", env: "PORT");

Then you can hardcode 8085 in your auth configuration.

or any reason why this is not the default functionality?

You can read about how networking works here https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/networking-overview

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stevedunn-marex
Comment options

@davidfowl
Comment options

Answer selected by davidfowl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants