Sustainsys / Saml2

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

Redirect url after signin #1326

Closed AlexAlexGoTO closed 2 years ago

AlexAlexGoTO commented 2 years ago

Hi everyone. Have a question. I have 'api/saml' route it's redirect me to my saml server, when I press singIn button, it's redirect me to /Saml2/Acs library handle this request and then somehow send me back to 'api/saml'. I have redirect URL but I never enter it after /Saml2/Acs.

var spOptions = new SPOptions
{
      EntityId = new EntityId($"{appUrl}/Saml2"),
      ReturnUrl = new Uri($"{appUrl}/api/samlredirect"),
};

How can I force library to redirect me to some callback url after authorization in /Saml2/Acs

AndersAbel commented 2 years ago

What client package are you using? Owin? AspNetCore2? Mvc? HttpModule?