Forum Discussion

detroit's avatar
detroit
Ideator I
5 years ago

Auth in Aras 12

Hello guys

We have an mvc C# app and we use IOM to connect to aras.

Has anyone tried the "old" way connecting via var conn = IomFactory.CreateWinAuthHttpServerConnection(url, db); and got it successfully working on production environment? It's not working for me the impersonation does not work. The app cannot log in, but if im in my dev environment using IIS express everything is fine user is found and logs in.

Best regards

10 Replies

  • just an update i managed to get token or rather use the token provider

    via

    var conn = IomFactory.CreateHttpServerConnection(url, tokenProvider, ProtocolType.Standard);

    everything works in development but on production i get Invalid user name: 

    Error:Invalid user name.

    Any hints?

    • detroit's avatar
      detroit
      Ideator I

      Another update

      i checked the username under which the token is generated and its the user which the application pool is running under and not the user opening the webpage. Meaning the asp.net Impersonation is not working.

      Has anyone got impersonation working?

      • AngelaIp's avatar
        AngelaIp
        Ideator I

        Which Innovator version do you use? I have seen some changes regarding impersonation in the codetree in the latest Innovator versions when moving a test environment from 12SP7 to 12SP10. But the C# application didn´t mind.

        But I use the standard connection from development guide --> IomFactory.CreateHttpServerConnection(url, db, user, pw);