Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Authentication method for Web based Mobile Apps using Dynamics AX Custom Services?

(0) ShareShare
ReportReport
Posted on by 900

Hello, I have build an ASP.NET MVC 5 based Responsive Application with HTML5, Bootstrap and jQuery so it should run in many kind of devices. Application runs in IIS and uses AX's Custom Services. But what comes to Authentication against AX 2012 I don't quite know what technique would be best. Application is still a Web Application so should it still used Authentication methods that ordinary Web Applications do? I think maybe.

Can anyone suggest me some Authentications methods to this Web Application vs. AX Custom Service case? Like to hear from your experiences,

Best Regards,

Michael

*This post is locked for comments

  • Suggested answer
    Ismael Utitiaj Profile Picture
    Ismael Utitiaj 426 on at
    RE: Authentication method for Web based Mobile Apps using Dynamics AX Custom Services?

    Hi Mike, you can use on summary:

    - Concept of trusted intermediary (create claims user into AX )

    - add Claims user created and other Domain user into Ax custom service  by Inbound port Form, button Trusted Intermediary users.

    - Into Web.Confi file you need to add claim user.

    <client>

         <endpoint address="net.tcp://InstanceName:8201/DynamicsAx/Services/CustomService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ServiceName" contract="InvernegReference.ServiceName" name="NetTcpBinding_ServiceName">

           <identity>

             <userPrincipalName value="ClaimUserName@DomainComapany.com" />

           </identity>

         </endpoint>

       </client>

    - Setup IIS pool application authentication properties and link the DOMAIN USER added into Trusted Intermediary users

    In this way I can work with my web mobile app and AX 2012 R2.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Authentication method for Web based Mobile Apps using Dynamics AX Custom Services?

    Hi,

    I think the authentication method to choose depends if your web users have accounts in Active Directory or not. Probably you will have to implement claims based authentication (like the SharePoint based AX Enterprise Portal is using)

    https://community.dynamics.com/ax/b/axfortechies/archive/2012/05/01/claims-based-flexible-authentication-in-dynamics-ax-2012.aspx

    http://msdn.microsoft.com/en-us/library/hh291068(v=vs.110).aspx

    p.s.

    Sorry, Martin is absolutely right, if you are asking how to authenticate against the WCF service (AX Custom Service) then forget my post :)

    BR,

     Oleg

  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Authentication method for Web based Mobile Apps using Dynamics AX Custom Services?

    Are you talking about authenticating the web server or individual users using your application?

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans