web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM 2016 OnPrem SSO with ASP.Net MVC application

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans