Hello,
am currently facing a problem implementing SSO with CRM 2016. We have a CRM2016 On Prem instance running on our server which is set up to use ADFS 2.0 Claims Based Authentication. SO when you browse to the CRm page, if the user is not logged in, it take you to the STS page. That authentication works fine. But the problem is that we also have a portal developed is ASP.Net MVC which also connects to CRM in the backend, using the CRMConnection class and creating a OrganizationServiceProxy instance, so that data can be pulled from CRM to the portal for the user to view it.
I have set up the web.config of our Asp.Net Portal to also use the STS page for authentication instead of forms based authentication, so the user doesn't have to sign in multiple times. Now the authentication seems to work, but I am not able to find a way to do a CRMConnection or create a OrganizationServiceProxy instance using claims.
I found this, https://msdn.microsoft.com/en-us/library/gg307113.aspx but it wasn't very helpful. I am trying to understand how I can create a OrganizationServiceProxy issuance in the underlying code using Claims generated by the ADFS so that I can access CRM data like we used with Form Authentication. Thank you.
-Sahdeep
*This post is locked for comments