Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics CRM 2016 OnPrem SSO with ASP.Net MVC application

Posted on by Microsoft Employee

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans