web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Generate token ms-dynamic

(0) ShareShare
ReportReport
Posted on by

Generate token as I am JavaScript developer I need to use API of ms-dynamic but first to generate token to access the app

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    I think this should help you  : docs.microsoft.com/.../gg334279(v=crm.8)  

    community.dynamics.com/.../web-api-authentication-from-javascript  

  • Community Member Profile Picture
    on at

    how to get token after bearer who to generate it

  • Rawish Kumar Profile Picture
    13,758 on at

    is dynamics crm online or onpremise?

  • Community Member Profile Picture
    on at

    how to genrate token toaccess the api  token in header i want to test it on postman ?

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    if its dynamics crm online - you have ask admin to register the dynamics crm app in azure directory to obtain the Oauth token:

    passion4dynamics.com/.../register-dynamics-crm-app-with-azure-for-oauth-2-0-authentication  

    in this example i have connected to dynamics crm using postman : passion4dynamics.com/.../create-auto-number-attribute-in-dynamics-crm-365-using-web-api-use-postman-with-crm-online

  • Community Member Profile Picture
    on at

    Sorry, but we’re having trouble signing you in.

    AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application:  client_id

    this error i got it

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi Mirette92,

    May I know the value you have added in Reply Urls or Redirect Uris field?

    When you select Web app /API you must provide a Sign-On URL which is the URL where Azure AD will send the authentication response, including a token if authentication was successful. While you develop an app, this is usually set to “[View:http://localhost/appname][port]” so you can develop and debug your app locally. When you publish your app, you need to change this value to the published URL of the app.

    When you select Native, you must provide a Redirect URI. This is a unique identifier to which Azure AD will redirect the user-agent in an OAuth 2.0 request. This is typically a value formatted like so: //app:<guid>.

    Are you using JavaScript ADAL library for handling authentication?

    [View:https://github.com/AzureAD/azure-activedirectory-library-for-js]

    Thanks

    Justin Jose

  • Community Member Profile Picture
    on at

    the redirect is localhost/CFM-MobApp.html

  • Community Member Profile Picture
    on at

    AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

    Trace ID: 2479798c-c53e-482f-93bb-9b41d0018300

    Correlation ID: a6540ee3-4017-4d26-85b7-f0a4de27818f

    Timestamp: 2019-04-11 07:01:37Z   (this is a new erorr)

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    i think you need client secret id as well : www.netiq.com/.../creating-application-client-id-client-secret-microsoft-azure-new-portal  

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans