Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 2Check out the latest updates and new features of Dynamics 365 released from October 2022 through March 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All 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