Priyanka K S

Priyanka K S

  • 1.2k
  • 1k
  • 232.3k

Getting Error: The message is not an HTTP POST for SAML .Net

Dec 30 2019 1:22 AM
getting error in line number : 10      
 
you can find code in : https://www.componentspace.com/saml-for-asp-net
  1. public ActionResult AssertionConsumerService() {  
  2.  bool isInResponseTo;  
  3.  string partnerName;  
  4.  string authnContext;  
  5.  string userName;  
  6.  IDictionary attributes;  
  7.  string relayState;  
  8.   
  9.  SAMLServiceProvider.ReceiveSSO(  
  10.   Request,  
  11.   out isInResponseTo,  
  12.   out partnerName,  
  13.   out authnContext,  
  14.   out userName,  
  15.   out attributes,  
  16.   out relayState);  
  17.  Common.Email = userName;  
  18.  var applicationUserManager = HttpContext.GetOwinContext().Get();  
  19.  return RedirectToAction("ControllerMethod""ControllerPage"new {  
  20.   value = userName  
  21.  });  

 

Answers (1)