Now that we have the UI as a NuGet package, is not possible anymore to remove that behavior and let the OpenIdConnect provider generate the callback for you so you need to forcibly add that value.
We should only set that property if the user is trying to override the default, example:
Currently we are modifying the Redirect Uri when authenticating using the
OpenIdConnect
provider with a value defined in configuration:https://github.com/skoruba/IdentityServer4.Admin/blob/7023c0c6bb86f0d3c9bd2a5f603d17984c5c5fe3/src/Skoruba.IdentityServer4.Admin.UI/Helpers/StartupHelpers.cs#L420-L425
By default the
OpenIdConnect
provider is able to generate the callback URL based on the current hostname, port, etc:https://github.com/dotnet/aspnetcore/blob/b7a2ec8c7ed6b48857af0a69688a73e8c14fe6cb/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectHandler.cs#L378
Now that we have the UI as a NuGet package, is not possible anymore to remove that behavior and let the OpenIdConnect provider generate the callback for you so you need to forcibly add that value.
We should only set that property if the user is trying to override the default, example:
What do you think @skoruba? I can open a quick PR with this if you agree.
Thanks!