Why don't you want to put it in the
web.config? The standard approach is to keep the Uri paths the same for each site and change the domain depending on the context. Here you can see an example of how to do that (see the
You could use a similar approach and use
ContentReference.StartPage.GetPublicUrl() for example to get the current homepage URL.
I am trying to implement OIDC (Startup class) in our CMS solution.
How can I get the URLs to redirectUri (login action method), error and postlogoutRedirectUri (homepage) without hardcoding / getting from web.config ?