Closed innotech-banha closed 5 months ago
No, there is no built in way to do that. But it can be done through some customizations - either in how the library is used or possibly as a separate middleware that converts the response. I'd be happy to help out under my commercial support contract, please get in touch at support@sustainsys.com for more information.
Hello,
Sorry for keeping to bother with questions. We're using the package Sustainsys.Saml2.AspNetCore2 (version 2.9.2) for .NET 6.
Is there a way to return the address with the SamlRequest to the caller of an API that is using your package, instead of having the library redirecting the user?
I ask, because we're having trouble when trying to do this from the API only. We suspect that if it was the Front-End application redirecting, that it could work.
This is the code where we're adding SAML:
And this is the controller that takes care of the authentication: