.NET Web Authentication

Sort:
You are not authorized to post a reply.
Author
Messages
ridjayc
Veteran Member
Posts: 191
Veteran Member

    I have a .NET web application that currently uses windows authentication. This grabs the current user off the machine. In some cases however it would be better for us to use Lawson's authentication. Basically the person logged into the machine may be logged into Lawson as a different user. Has anyone done this?

    Thanks --JayR
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      Done what? Authenticated someone against Lawson from a .NET application?
      Thanks for using the LawsonGuru.com forums!
      John
      ridjayc
      Veteran Member
      Posts: 191
      Veteran Member
        Yes I would like to authenticate against Lawson from a .NET Web application.
        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          The way I do it is to make an HTTP request to cgi-lawson/printenv.exe; which authenticates against Lawson.
          Thanks for using the LawsonGuru.com forums!
          John
          ridjayc
          Veteran Member
          Posts: 191
          Veteran Member
            There is a

            http://law-dev-web1.prod....en.exe?func=myfunc()

            This returns some javascript. I have only done a small amount of web and that was mostly ASP clasic.

            Do you have sample code?

            --JayR
            John Henley
            Senior Member
            Posts: 3348
            Senior Member
              I will be publishing an article about this very topic in an upcoming LawsonGuru Letter. Stay tuned!
              Thanks for using the LawsonGuru.com forums!
              John
              John Henley
              Senior Member
              Posts: 3348
              Senior Member
                The article on calling AGS from VB is here:
                https://www.danalytics.co.../archive/2006-08.htm
                Thanks for using the LawsonGuru.com forums!
                John
                cpham
                New Member
                Posts: 4
                New Member
                  John, do you have more in dept sample of the article above? Where can I find out more about making a call to AGS or DMI? When making these type of call, does Lawson authenticate the requester?

                  Thanks,
                  Charlie
                  John Henley
                  Senior Member
                  Posts: 3348
                  Senior Member
                    I don't have a sample that I'd want to post here. If you want to learn more about AGS & DME, there is a lot of information on the Lawson knowledgebase; Both DME and AGS are pretty simple to figure out; they are simply ways to query (DME) and update (AGS) the Lawson data via a URL. The only hard part is getting the URL string correct, with all the right parameters. If you use one of the Lawson-provided "Query Builder" tools (from ProcessFlow, Design Studio, OLEDB Provider, etc.) you can build the URL strings pretty easily.

                    When you call AGS/DME from Visual Basic via an HTTP object, the username/password as properties of the HTTP object. This is what triggers the authentication.
                    Thanks for using the LawsonGuru.com forums!
                    John
                    You are not authorized to post a reply.