Sustainsys / Saml2

Saml2 Authentication services for ASP.NET
Other
951 stars 601 forks source link

ReturnUrl is not working from code instead of config file. #1343

Closed MuraliRuban closed 2 years ago

MuraliRuban commented 2 years ago

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.

MuraliRuban commented 2 years ago

I want to pass return url from code instead of config in MVC application . How do I achieve it?