I am using MVC framework application and using azure ad saml sso authentication in this and Sustainsys is used in application . I can able to authenticate with azure ad and redirect to what I have in returnUrl in config file.
In my case, the returnUrl might be changed based on hostname and I want to pass return url from code instead of config.
I am using below url in code for authentication
var samlAuthUrl = Request.Url + "Saml2/SignIn?idp=" + HttpUtility.UrlEncode({EntityId});
Can I pass returnUrl in Query string? or How do I achieve it?
I am using MVC framework application and using azure ad saml sso authentication in this and Sustainsys is used in application . I can able to authenticate with azure ad and redirect to what I have in returnUrl in config file. In my case, the returnUrl might be changed based on hostname and I want to pass return url from code instead of config. I am using below url in code for authentication
var samlAuthUrl = Request.Url + "Saml2/SignIn?idp=" + HttpUtility.UrlEncode({EntityId});
Can I pass returnUrl in Query string? or How do I achieve it?
Please help me.