@Sunil Please find below the answers to your questions.
How do I differentiate or know if the application using SAML and not WS-Fed?
- WS-Fed: If the request has below parameters, it means the application is using WS-Fed:
- Wa=signin1.0: To invoke a login for the user.
- Wtrealm: This tells IDP what application you are trying to get to.
- Wctx: This is some session data that the application wants sent back to it after the user authenticates.
- wct: This is the exact time I tried to gain access to the application.
- SAML: If the request has below parameters, it means the application is using SAML protocol:
- SAMLRequest: This is a Base64 encoded XML value.
- RelayState: This is some session data that the application wants sent back to it after I authenticate against IDP.
- SigAlg: Which signature algorithm was used to sign the request.
- Signature: The digital signature of the request above.
Is there any link available to implement SAML 2.0 (not WS-Fed) in ASP.NET C# web application to authenticate users?
Please refer to below GitHub link that includes SAML client library that allows adding SAML single-sign-on to your ASP.NET app:
Please "accept as answer" wherever the information provided helps you to help others in the community.