(probably been answered here before, and I've read tons of post, websites and other...but can't seem to get my head around this...:( )
Problem: C# web app running as a virutal directory (c:\inetpub\www\webapp is original location) under the CRM application. CRM is configured with on-premise + ifd mode. What kind of authentication method should be used when trying to authenticate to the CRM web services from the web app?
Found these articles regarding authentication On-Premise: http://msdn.microsoft.com/en-us/library/cc151053.aspx IFD: http://msdn.microsoft.com/en-us/library/cc151054.aspx Aspx-page: http://msdn.microsoft.com/en-us/library/cc151050.aspx
From what I've read one should use IFD authentication when CRM is configured with IFD mode. Is this correct? And, this method works for both users working on the internal network and from the outside?? Or should use different authentication methods based on where the user access the CRM? Problem: The example needs a hardcoded user and password...Who wants to do that (i'm not hardcodeing the administrator user/pass in the code - )? How can I get around that?
Another approach is using code from the book "XRM as a Rapid development platform". The author has some authentication helper classses (book says you'll get rid of the hardcoded username and password stuff). Have anyone used these classes? (I haven't looked at them yet)
You should use a combination of IFD and AD authentication if you have users accessing the service from within the lan otherwise only IFD is required. As far as hard coding the credentials, yes it's a shocker but you can just create a new AD user with limited permissions and place their credentials in the code or in the web.config file. I like C#, JScript, CRM and helping people :)
Proposed as answer byLachlanFMonday, September 21, 2009 2:57 AM
Marked as answer byflowjobMonday, September 21, 2009 7:46 AM
You should use a combination of IFD and AD authentication if you have users accessing the service from within the lan otherwise only IFD is required. As far as hard coding the credentials, yes it's a shocker but you can just create a new AD user with limited permissions and place their credentials in the code or in the web.config file. I like C#, JScript, CRM and helping people :)
Proposed as answer byLachlanFMonday, September 21, 2009 2:57 AM
Marked as answer byflowjobMonday, September 21, 2009 7:46 AM