Web Service - Login Dialog Window

Ravi_ThakkarRavi_Thakkar Member Posts: 392
edited 2010-09-08 in NAV Three Tier
Hello,

I have published a Codeunit as a webservice (NAV 2009). This codeunit Releases a Sales Order. A webpage has been created where the user can release that Sales Order. Whenever the user accesses that webpage, he should receive a login dialog window. The credentials provided by him should be directly authenticated by the Windows Logins present in NAV 2009.

Could anyone tell me if this is possible?
Can I get a Login Dialog automatically or do I have to create it?
I am using ASP.net (C#)

Thanks
Ravi
Ravi_Thakkar
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com

Answers

  • kinekine Member Posts: 12,562
    It will be displayed automatically, but all depends on settings.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Ravi_ThakkarRavi_Thakkar Member Posts: 392
    Hi Kine,
    kine wrote:
    It will be displayed automatically, but all depends on settings.

    Can you please specify which type of settings?
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
  • weoiliweoili Member Posts: 5
    Hi Kine,
    kine wrote:
    It will be displayed automatically, but all depends on settings.

    Can you please specify which type of settings?


    Ya could some one give some idea on this issue. Me, too, are curious about the issue.
    ~~ Just another newbies trying to learn more things here. ~~
    -Sorry in advance for anything I might said or done that hurt anyone.
  • kinekine Member Posts: 12,562
    E.g. you can set the Security for the web site in IIS to deny anonymous access and reqest Windows Authentication. Than the webpage will take windows account of the user if you are using IE or will ask for the credentials if you are using another browser or user is not logged into domain. Than it depends on how you are calling the WebService if you are using the UseDefaultCredentials or not etc.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Ravi_ThakkarRavi_Thakkar Member Posts: 392
    Hi, Kine

    Thanks.
    My problem has been solved.

    We can do by both the ways. I wasted so much time for it.

    1) We can block the system generated Dialog for the authentication by some settings on IIS.
    And then by making our own Login Page.
    2) By using System Generated Dialog, created by some settings on IIS.

    Thanks.
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
  • alok_didaalok_dida Member Posts: 73

    1) We can block the system generated Dialog for the authentication by some settings on IIS.
    And then by making our own Login Page.

    Thanks.
    Hi Ravi,
    Can u tell me what settigns u did in IIS? and How did u AUthenticate ur WebService in C#?
Sign In or Register to comment.