Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

CRM Online / Office 365 / ADFS - obtaining ogranization service without providing password

$
0
0

Hi,

I'm developing a custom solution for a CRM 2011 environment being part of Office 365. ADFS is set up and when accessing the system through the web (https://orgname.crm4.dynamics.com) it is only requires to put in the users email. No password.

I would like to achieve the same behavior when connecting to CRM inside an external application (for simplicity sake let's say it's a simple console application). In other words I would like this code to run without errors, when run by a user that is logged into the domain:

string crmUrl = "https://orgname.crm4.dynamics.com";
string user = "someone@example.com";

// Some black box code here

WhoAmIResponse resp = orgService.Execute(new WhoAmIRequest()) as WhoAmIResponse;

Even better if the email was not required.

I have looked at the SDK, read several forum and blog posts and done multiple tests, but with no luck. 

So, I have two questions:
- Is this possible at all?
- What code should I use?

Side note - I really don't understand why this is so complicated. The samples in the SDK are a bit overwhelming and from a user perspective I really don't care about all the authentication details. I just want to implement some business logic, not spend hours on connecting to the system. I am aware of the "Simplified connection" possibility, but unfortunately it doesn't support this scenario (not sure why not?).





Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>