Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I'm developing a mobile application to access my company's CRM system which uses Dynamics 2011. We use ADFS to authenticate. I am writing the application in react-native and have looked around for some resources, but they're sparse. I'm looking not to use auth0 or miniOrange for ADFS authentication because we don't want to pay their fees. Is this possible? We were thinking we would need to set up a web service in C# to make the authentication endpoint available from the app. What is the best route to go in this case? Thanks!
his blog entry:
I think you can create web api and using c# and call that from the mobile app.
that will be a good approach, but depends on the system is on premise and no idea moving to on line.
Thanks for the link. It helps a lot. I'm currently trying to get the adfs URL from his function Xrm.CRMAuth.GetADFS. However, it makes a synchronous call and that isn't allowed in react-native. I ran the code on a desktop application and got the adfs url that way and am simply returning that value in that function, commenting out the synchronous api call. When my application tries to authenticate, I get this error: "An SSL error has occurred and a secure connection to the server cannot be made." Is this because my ADFS has not yet been configured to allow my application access? Do you know the steps to configure ADFS to allow mobile apps access? Thanks a lot man!
Sound like you ran into this issue if you are using Apple iOS:
I added the lines in my info.plist and the same error: "An SSL error has occurred and a secure connection to the server cannot be made." keeps occurring.... Man I'm stumped.. No idea how to talk to the ADFS server to get the SOAP authentication header!
Here is another one:
Seems like an iOS specific issue. Maybe you should better ask in an iOS developer forum.
We upgrade our TLS version to 1.2 and now I'm finally able to talk to the ADFS server. I receive an XML envelope back, and receive a FailedAuthentication error when I make the POST request to authenticate. The body of the message says "ID3242: The security token could not be authenticated or authorized." Any clues?
We updated our CRM and ADFS servers to use TLS1.2.
I'm getting a different error now in my react-native application:
"The security token could not be authenticated or authorized"
And in my ADFS tracing log, I see the error:
ID4063: LogonUser failed for the <domain_name> user. Ensure that the user has a valid Windows account.-Logon failure: unknown user name or bad password
Not sure why I am getting this error, because I can sign in to the CRM deployment no issue from a regular browser.
Any help would be appreciated. Thanks!
Business Applications communities