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

  • Suggested answer
    Nishant Rana Profile Picture
    11,323 Microsoft Employee on at
    RE: Generate token ms-dynamic

    This should help

    nishantrana.me/.../

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Generate token ms-dynamic

    Hi

    I have replied with all the details on your other post, please refer to that

    community.dynamics.com/.../316681

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at
    RE: Generate token ms-dynamic

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

  • Community Member Profile Picture
    on at
    RE: Generate token ms-dynamic

    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)

  • Community Member Profile Picture
    on at
    RE: Generate token ms-dynamic

    the redirect is localhost/CFM-MobApp.html

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at
    RE: Generate token ms-dynamic

    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
    RE: Generate token ms-dynamic

    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
    Rawish Kumar Profile Picture
    13,758 on at
    RE: Generate token ms-dynamic

    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
    RE: Generate token ms-dynamic

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

  • Rawish Kumar Profile Picture
    13,758 on at
    RE: Generate token ms-dynamic

    is dynamics crm online or onpremise?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans