I’m calling SAMLServiceProvider.InitiateSSO to send authentication request to IdP. How I could include ForceAuthn attribute in the authentication request?
There are a few overloads of the SAMLServiceProvider.InitiateSSO method which take an SSOOptions object. The SSOOptions.ForceAuthn property may be set to true to set the ForceAuthn attribute in the authentication request.
For example:
SAMLServiceProvider.InitiateSSO(Response, null, “urn:componentspace:ExampleIdentityProvider”,
new SSOOptions() {ForceAuthn = true});