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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Token Authentication to consume a web service hosted (IIS) on dynamic ax 2012 r3 without using Azure

(0) ShareShare
ReportReport
Posted on by

Hi Team,

I am working on a requirement where i need to authentication the user to consume web service hosted on IIS Dynamic Ax. We need to generate a token on first request send by authenticated user. Then that token should pass to the further request to dynamic ax.

I have gone through by many article related to this but couldn't get the complete solution.

Please suggest if there is any proved solution.

Thanks

Ashok Kumar

I have the same question (0)
  • Suggested answer
    Anup Shah MSFT Profile Picture
    on at

    AX 2012 R3 uses Active Directory Windows authentication. If you have a requirement to use some other access protocol, then use a middleware application that can perform token authentication, and then when connecting to AX uses windows authentication.

  • Community Member Profile Picture
    on at

    Hi Anup, Thanks for your reply.

    We have checked many articles on it and found ADFS (Active Directory Federation Service) provide us the token authentication to validate the user.

    please suggest us if we are good to go in that direction.

    Or you can suggest us any middle ware application to authenticate the user.

    Thanks

    Ashok Kumar

  • Suggested answer
    Anup Shah MSFT Profile Picture
    on at

    Please note  IIS web services uses basicHttpBinding, details here docs.microsoft.com/.../basichttpcontextbinding. In AX we only support the Windows authentication as the client protocol. There is no support for ADFS token based authentication.

    You are looking at building another proxy web service that accepts adfs authentication token to call a web service method, and then that method calls the AX service performing windows authentication of same user. It doesn't matter if the service is running on IIS or AOS.

    AX IIS web services are just routable services, meaning IIS is used for authentication only, the actual service method is processed by the AOS (check the wcf configuration of any IIS hosted AX web service). So maybe you should look at creating an IIS webservice server that allows users to connect to that and the proxy methods call the net.tcp services on the AOS, to by-pass one whole layer.

    I am not aware of any on-premises middleware app that will accomplish this. Maybe the community has further suggestions and can share different opinions and solutions.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans