I was able to get this to work, by using SP initiated flow for Login. Thanks for the help.
Now i am trying logout for the above scenario. The Logout button is on the SP( Relying Party) site.
I have added my Logout controller action in my MVC Component Space IDP, and also added a SAML logout endpoint for my IDP in ADFS.
When the user clicks on the Logout link, it redirects to my controller action in MVC (Componet Space IDP). Here i am doing two things:-
1. SAMLIdentityProvider.ReceiveSLO(Request, Response, out isRequest, out hasCompleted, out logoutReason, out partnerSP);
The isrequest comes as true.
2. SAMLIdentityProvider.SendSLO(Response, null);
This gives me error saying 'A logout URL has not been configured for partner provider'
Is my flow correct, if so then where do i need to add the logout URl (in my SAML.config along with AssertionalConsumerServiceURL).
Thanks in advance.