@brockallen, I looked at the source and see that IRedirectUriValidator is a part of the identity server, not the client. Whereas I need to configure the client. The identity server Client supports multiple redirect URLs, but what i need is to be able to provide the redirect URL from the (OWIN) client side somehow dynamically. Example: I have identity server with two redirect URLs configured: client1 - RedirectUrl: https://subdomain1.example.com, https://subdomain2.example.com
Then I have the OWIN client app:public class Startup{public void Configuration(IAppBuilder app){app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions{ClientId = "client1",RedirectUri = "https://subdomain1.example.com", //how to add https://subdomain2.example.comResponseType = "id_token token",Scope = "openid profile email",PostLogoutRedirectUri = "https://subdomain1.example.com", // how to add https://subdomain2.example.comSignInAsAuthenticationType = "Cookies"});}}Then I have a controller:[Authorize]public ViewResult GetSomething(){return View();}HOw to configure OWIN to determine the redirect URL? If the Request.Url == "https://subdomain1.example.com", it should be https://subdomain1.example.com, if Request.Url == "https://subdomain2.example.com", it should be "https://subdomain2.example.com". I cannot figure out how this can be configured on the client side... Does it have a property, event, delegate that I can hook to? There must be a way to handle multiple domains on the same app... Now we are stuck deploying separate app for each domain as the redirect URLs are pretty much hard-coded...
Thanks,alex.