Sustainsys / Saml2

Saml2 Authentication services for ASP.NET
Other
961 stars 603 forks source link

No Saml2 Response found in the http request. #1431

Closed acad96 closed 6 months ago

acad96 commented 10 months ago

Hi, currently I'm doing a .Net core project with sustainsys. The user has already successfully login in Microsoft Entra ID but when want to redirect to my website it shows this error. Do you know why?

This is my Acs function

    public IActionResult Acs()
    {
        return Redirect("~/Account/saml");
    }
AndersAbel commented 10 months ago

You should not create your own Acs function. The Saml2/Acs endpoint is handled by the library. Look at one of the samples to see how it should work.

acad96 commented 10 months ago

I see, because without that function it shows error 500 as if it doesn't go to the login function that check the user info. Which sample should I see how it should work?

AndersAbel commented 10 months ago

The most simple one is https://github.com/Sustainsys/Saml2.Samples/tree/main/v2/AspNetCore

acad96 commented 10 months ago

But how to configure the library to redirect to my login function for user-checking

AndersAbel commented 10 months ago

This issue tracker works best for questions about specific functions/configurations. If you need assistance with designing the overall flow of your application I can offer that as commercial consulting services. Please reach out to support@sustainsys.com for more information.

AndersAbel commented 6 months ago

Closing due to inactivity.