Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Client Side SOAP or Web API Authentication to CRM Online using Java Script (External HTML Web Page)

(0) ShareShare
ReportReport
Posted on by

Hi All,

Do you have any idea on how to connect to CRM Online from an external HTML Web Page using pure Java Script (SOAP or Web API)? I see below blog which works only for CRM Online O365 authentication, looking for CRM Onlne STS authentication

http://jlattimer.blogspot.in/2014/04/soap-authentication-to-crm-online-using.html

Any responses appreciated

Thanks,

Shaik

*This post is locked for comments

  • Verified answer
    Shaik Profile Picture
    Shaik on at
    RE: Client Side SOAP or Web API Authentication to CRM Online using Java Script (External HTML Web Page)

    This worked for me 

    Use OAuth with Cross-Origin Resource Sharing to connect a Single Page Application to Microsoft Dynamics 365

    https://msdn.microsoft.com/en-us/library/mt595799.aspx 

    I have another question. Is it possible to configure CRM credentials in SPA config (like service credentails) instead of authenticating end customer credentials. In fact we do not need Sing-in page to be displayed to the customer


    We have an Intranet HTML UI page talking to CRM Online (behind the scenes). We need to populate customer details in HTML, which are stored in CRM Contact. Customer is not an user in CRM. We are also evaluating MuleSoft ESB if Client Side does not work out. Appreciate responses

  • Suggested answer
    M.T. Eikelenboom Profile Picture
    M.T. Eikelenboom 5,241 on at
    RE: Client Side SOAP or Web API Authentication to CRM Online using Java Script (External HTML Web Page)

    I don't think there's a secure way to authenticate with STS to your SOAP endpoint with JavaScript only. You probably need an intermediate api to do the authentication for you.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans