Advice sought on web services and authentication

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Advice sought on web services and authentication

    I'd really appreciate some pointers on web services etc. I'm a VB6
    developer with a growing knowledge of vb.net and asp.net but I'm in
    need of some direction!

    Firstly, sorry about the X-posting but I've kept it to a minimum (2
    groups).

    I have a asp.net web application that uses a combination of SSL (for
    anything in the secure folder) and forms authentication (for certain
    pages in that secure folder). This has been developed using VS.Net
    2003.

    I now want to add a web service to the application. This web service
    will require SSL and (probably) basic authentication (as forms
    authentication cannot be used for web services).

    How can I achieve this? Is it possible to have different
    authentication modes within the same application? From what I've read
    it is not - so how can I host this web service in the asp.net app and
    still provide some kind of authentication for it?

    I also considered simply creating a remoting object rather than a web
    service. Might this be a better option? I presume that I can host
    this in the secure folder (or a sub-folder off that) and it can have
    its own authentication mode?

    Also, I know how forms authentication works by sending a ticket in an
    encrypted cookie but how does a web service deal with this? Can it be
    done in the same way? - how? To make it truly stateless, would I be
    better to require that the credentials be sent with each request?
    (safe enough with SSL but is it necessary?).

    How easy is it to call a web service or a remoting object that uses
    SOAP from non-ms.net platforms? (This will be required by the web
    service consumers)

    Thanks for any help

    Ian
    Ian B Guest

  2. Similar Questions and Discussions

    1. Need advice from someone experienced withcalling web services from Acrobat
      I originally tried to resolve this issue in the Scripting forum and it was recommended that I check to see if anyone in the SDK forum has the...
    2. Namcespace advice sought for libevent wrapper
      Hi, I'm about to wrap libevent as available from <http://www.monkey.org/~provos/libevent/> into a Perl module. The namespacing gives me...
    3. .Net/General Advice Sought
      Dear Colleagues: Thank you for taking the time to read this - I recently posted here with regards to what was possible with .NET. I...
    4. Advice: Authentication
      Hi folks, I hope to get some of your advice on an authentication question that came up during the planning of web app. I'm a bit new to asp.net,...
    5. Authentication for Web Services
      Hi guys.... I have a web service enabled which only allows a fixed number of users access. From another application which uses this service as a...
  3. #2

    Default Advice sought on web services and authentication

    I'd really appreciate some pointers on web services etc. I'm a VB6
    developer with a growing knowledge of vb.net and asp.net but I'm in
    need of some direction!

    Firstly, sorry about the X-posting but I've kept it to a minimum (2
    groups).

    I have a asp.net web application that uses a combination of SSL (for
    anything in the secure folder) and forms authentication (for certain
    pages in that secure folder). This has been developed using VS.Net
    2003.

    I now want to add a web service to the application. This web service
    will require SSL and (probably) basic authentication (as forms
    authentication cannot be used for web services).

    How can I achieve this? Is it possible to have different
    authentication modes within the same application? From what I've read
    it is not - so how can I host this web service in the asp.net app and
    still provide some kind of authentication for it?

    I also considered simply creating a remoting object rather than a web
    service. Might this be a better option? I presume that I can host
    this in the secure folder (or a sub-folder off that) and it can have
    its own authentication mode?

    Also, I know how forms authentication works by sending a ticket in an
    encrypted cookie but how does a web service deal with this? Can it be
    done in the same way? - how? To make it truly stateless, would I be
    better to require that the credentials be sent with each request?
    (safe enough with SSL but is it necessary?).

    How easy is it to call a web service or a remoting object that uses
    SOAP from non-ms.net platforms? (This will be required by the web
    service consumers)

    Thanks for any help

    Ian
    Ian B Guest

  4. #3

    Default Re: Advice sought on web services and authentication

    What I've got to handle authentication is put it in the web method. The
    first two parameters to all of my webmethods are UserName and Password.
    Inside the webmethod I determine if the user is allowed to execute that
    method.

    I put all of my webservices in a subfolder off of my domain like

    [url]http://www.mydomain.com/webservices/webservicename.asmx[/url]

    HTH!

    Michael

    "Ian B" <i_best@hotmail.com> wrote in message
    news:69c58cd1.0309181104.415a4f36@posting.google.c om...
    > I'd really appreciate some pointers on web services etc. I'm a VB6
    > developer with a growing knowledge of vb.net and asp.net but I'm in
    > need of some direction!
    >
    > Firstly, sorry about the X-posting but I've kept it to a minimum (2
    > groups).
    >
    > I have a asp.net web application that uses a combination of SSL (for
    > anything in the secure folder) and forms authentication (for certain
    > pages in that secure folder). This has been developed using VS.Net
    > 2003.
    >
    > I now want to add a web service to the application. This web service
    > will require SSL and (probably) basic authentication (as forms
    > authentication cannot be used for web services).
    >
    > How can I achieve this? Is it possible to have different
    > authentication modes within the same application? From what I've read
    > it is not - so how can I host this web service in the asp.net app and
    > still provide some kind of authentication for it?
    >
    > I also considered simply creating a remoting object rather than a web
    > service. Might this be a better option? I presume that I can host
    > this in the secure folder (or a sub-folder off that) and it can have
    > its own authentication mode?
    >
    > Also, I know how forms authentication works by sending a ticket in an
    > encrypted cookie but how does a web service deal with this? Can it be
    > done in the same way? - how? To make it truly stateless, would I be
    > better to require that the credentials be sent with each request?
    > (safe enough with SSL but is it necessary?).
    >
    > How easy is it to call a web service or a remoting object that uses
    > SOAP from non-ms.net platforms? (This will be required by the web
    > service consumers)
    >
    > Thanks for any help
    >
    > Ian

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003


    Michael Pearson Guest

  5. #4

    Default Re: Advice sought on web services and authentication

    What I've got to handle authentication is put it in the web method. The
    first two parameters to all of my webmethods are UserName and Password.
    Inside the webmethod I determine if the user is allowed to execute that
    method.

    I put all of my webservices in a subfolder off of my domain like

    [url]http://www.mydomain.com/webservices/webservicename.asmx[/url]

    HTH!

    Michael

    "Ian B" <i_best@hotmail.com> wrote in message
    news:69c58cd1.0309181104.415a4f36@posting.google.c om...
    > I'd really appreciate some pointers on web services etc. I'm a VB6
    > developer with a growing knowledge of vb.net and asp.net but I'm in
    > need of some direction!
    >
    > Firstly, sorry about the X-posting but I've kept it to a minimum (2
    > groups).
    >
    > I have a asp.net web application that uses a combination of SSL (for
    > anything in the secure folder) and forms authentication (for certain
    > pages in that secure folder). This has been developed using VS.Net
    > 2003.
    >
    > I now want to add a web service to the application. This web service
    > will require SSL and (probably) basic authentication (as forms
    > authentication cannot be used for web services).
    >
    > How can I achieve this? Is it possible to have different
    > authentication modes within the same application? From what I've read
    > it is not - so how can I host this web service in the asp.net app and
    > still provide some kind of authentication for it?
    >
    > I also considered simply creating a remoting object rather than a web
    > service. Might this be a better option? I presume that I can host
    > this in the secure folder (or a sub-folder off that) and it can have
    > its own authentication mode?
    >
    > Also, I know how forms authentication works by sending a ticket in an
    > encrypted cookie but how does a web service deal with this? Can it be
    > done in the same way? - how? To make it truly stateless, would I be
    > better to require that the credentials be sent with each request?
    > (safe enough with SSL but is it necessary?).
    >
    > How easy is it to call a web service or a remoting object that uses
    > SOAP from non-ms.net platforms? (This will be required by the web
    > service consumers)
    >
    > Thanks for any help
    >
    > Ian

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003


    Michael Pearson Guest

  6. #5

    Default Re: Advice sought on web services and authentication

    You should make the best use of the SOAP spec when designing the security of
    your web service. Here is a great article for a starting
    point on authentication and authorization in .NET:

    [url]http://archive.devx.com/security/articles/ps0602/ps0602.asp[/url]

    As far as remoting vs web services, a good rule of thumb is to use remoting
    if the web services (or service) is to be used internally (Intranet or
    Secured LAN) and use Web Services if there is the possibility of outside
    access. Web Services add the additional overhead of SOAP and HTTP. Here
    are a few good articles to get you started on that:

    [url]http://www.developer.com/net/net/article.php/2201701[/url]
    [url]http://builder.com.com/5100-6389_14-5034970.html[/url]

    We are currently developing a large SSO project and evaluated Remoting vs.
    Web Services and we chose Web Services due to outside access, ease of
    deployment, and platform interoperability.



    "Ian B" <i_best@hotmail.com> wrote in message
    news:69c58cd1.0309181104.415a4f36@posting.google.c om...
    > I'd really appreciate some pointers on web services etc. I'm a VB6
    > developer with a growing knowledge of vb.net and asp.net but I'm in
    > need of some direction!
    >
    > Firstly, sorry about the X-posting but I've kept it to a minimum (2
    > groups).
    >
    > I have a asp.net web application that uses a combination of SSL (for
    > anything in the secure folder) and forms authentication (for certain
    > pages in that secure folder). This has been developed using VS.Net
    > 2003.
    >
    > I now want to add a web service to the application. This web service
    > will require SSL and (probably) basic authentication (as forms
    > authentication cannot be used for web services).
    >
    > How can I achieve this? Is it possible to have different
    > authentication modes within the same application? From what I've read
    > it is not - so how can I host this web service in the asp.net app and
    > still provide some kind of authentication for it?
    >
    > I also considered simply creating a remoting object rather than a web
    > service. Might this be a better option? I presume that I can host
    > this in the secure folder (or a sub-folder off that) and it can have
    > its own authentication mode?
    >
    > Also, I know how forms authentication works by sending a ticket in an
    > encrypted cookie but how does a web service deal with this? Can it be
    > done in the same way? - how? To make it truly stateless, would I be
    > better to require that the credentials be sent with each request?
    > (safe enough with SSL but is it necessary?).
    >
    > How easy is it to call a web service or a remoting object that uses
    > SOAP from non-ms.net platforms? (This will be required by the web
    > service consumers)
    >
    > Thanks for any help
    >
    > Ian

    CSharpTooth Guest

  7. #6

    Default Re: Advice sought on web services and authentication

    You should make the best use of the SOAP spec when designing the security of
    your web service. Here is a great article for a starting
    point on authentication and authorization in .NET:

    [url]http://archive.devx.com/security/articles/ps0602/ps0602.asp[/url]

    As far as remoting vs web services, a good rule of thumb is to use remoting
    if the web services (or service) is to be used internally (Intranet or
    Secured LAN) and use Web Services if there is the possibility of outside
    access. Web Services add the additional overhead of SOAP and HTTP. Here
    are a few good articles to get you started on that:

    [url]http://www.developer.com/net/net/article.php/2201701[/url]
    [url]http://builder.com.com/5100-6389_14-5034970.html[/url]

    We are currently developing a large SSO project and evaluated Remoting vs.
    Web Services and we chose Web Services due to outside access, ease of
    deployment, and platform interoperability.



    "Ian B" <i_best@hotmail.com> wrote in message
    news:69c58cd1.0309181104.415a4f36@posting.google.c om...
    > I'd really appreciate some pointers on web services etc. I'm a VB6
    > developer with a growing knowledge of vb.net and asp.net but I'm in
    > need of some direction!
    >
    > Firstly, sorry about the X-posting but I've kept it to a minimum (2
    > groups).
    >
    > I have a asp.net web application that uses a combination of SSL (for
    > anything in the secure folder) and forms authentication (for certain
    > pages in that secure folder). This has been developed using VS.Net
    > 2003.
    >
    > I now want to add a web service to the application. This web service
    > will require SSL and (probably) basic authentication (as forms
    > authentication cannot be used for web services).
    >
    > How can I achieve this? Is it possible to have different
    > authentication modes within the same application? From what I've read
    > it is not - so how can I host this web service in the asp.net app and
    > still provide some kind of authentication for it?
    >
    > I also considered simply creating a remoting object rather than a web
    > service. Might this be a better option? I presume that I can host
    > this in the secure folder (or a sub-folder off that) and it can have
    > its own authentication mode?
    >
    > Also, I know how forms authentication works by sending a ticket in an
    > encrypted cookie but how does a web service deal with this? Can it be
    > done in the same way? - how? To make it truly stateless, would I be
    > better to require that the credentials be sent with each request?
    > (safe enough with SSL but is it necessary?).
    >
    > How easy is it to call a web service or a remoting object that uses
    > SOAP from non-ms.net platforms? (This will be required by the web
    > service consumers)
    >
    > Thanks for any help
    >
    > Ian

    CSharpTooth Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139