Session State is off in my SP application. how do we use component pro SAML.

0
Hello, I have downloaded trial version of component pro saml. 1. I have setup Simple SAML Idp Application. 2. The SP application has been configured to use Idp Application for Single Sign ON. 3. the SP application does not have session state enabled. 4. Hence it is failing in Assertion. please advice to how proceed. Thanks. Regards, Nasir
edited 5/2/2019 2:42:51 PM
asked 5/2/2019 7:20:22 AM
add a comment

1 Answers

0
If the session state is disabled, you can use memory or other forms of cache to store info. Basically you can do the following: - User requests to log in at Sp. Before redirecting the user to IdP, generate a random ID and save that ID to cache, send that ID to the IdP in relayState - The IdP authenticates the user and sends back a response with the relayState - On SP you can look up the corresponding info in your cache based on that relayState.
 
answered 5/2/2019 4:52:19 PM
  But I get error on redirection. "Object Reference Null" public ActionResult LoginatIdP() { //var result = Redirect("http://stowe/idpG2/"); //return Redirect("http://stowe/idpG2/"); ComponentPro.Saml2.EasySaml.AuhtnRequestSettings s = new ComponentPro.Saml2.EasySaml.AuhtnRequestSettings(); SAMLConfig.Saml.ServiceProvider.InitiateSingleSignOn(HttpContext, Url.GetCurrentAppUrl(), SAMLConfig.PartnerProviderName, s, null, null); return new EmptyResult(); } Error at ComponentPro.Saml2.EasySaml.SessionManagerBase.GetId(HttpContextBase context) at c_cy.Load[a](HttpContextBase ) at ComponentPro.Saml2.EasySaml.SamlServiceProvider.c_82c4548b(HttpContextBase ) at ComponentPro.Saml2.EasySaml.SamlServiceProvider.InitiateSingleSignOn(HttpContextBase httpContext, String relayState, String partnerIdP, AuhtnRequestSettings auhtnRequestSettings, String assertionConsumerServiceUrl, String singleSignOnServiceUrl) at GloviaG2.Areas.Home.Controllers.LoginController.LoginatIdP() in d:\\Glovia\ fsnew\\g2\\G2\\RIUX\\Glovia.UI\\G2Web\\GloviaKendoUIMVCApp\\Areas\\Home\\Controllers\\LoginController.cs:line 2511 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c.b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b__11_0() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_1.b__2() mnasir 5/3/2019 1:08:05 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged saml or ask your own question.