Results 1 to 6 of 6

Thread: web service login

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Location
    Manchester, England, UK
    Posts
    247

    web service login

    I have a number of web services that I use to allow me to easily build microsites from my main site containing the same information as on the main site and these are public with no real security on them.

    What I want to do next is allow certain users to pull more sensitive information.

    I was wondering how I manage security within the service.

    Should I expect the user to post credentials with each request and validate those every time or is there a mechanism to add a ticket like I would with forms authentication?

    And assuming I'm not using SSL or anything at the network layer what's the best way to encrypt webservice messages.

    There is a whole bunch of stuff on MSDN patterns and practices but there is too much to sift through so some general guidance would be apreciated.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: web service login

    I would suggest you do use SSL for this and not try to avoid it.

    Additionally, do a search for "XML Encryption" and "XML Signatures"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Location
    Manchester, England, UK
    Posts
    247

    Re: web service login

    I've done validation using an MD5 hash which works pretty well.

    Also having read further I can still use the forms based cookie for the authentication but I have to capture this within my remote application and persist it manaually as there is no cookie managment like in a web browser.

    although I'm not too sure how accessible this is to non .net developers.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: web service login

    That is correct and it won't be a problem to developers because a form based cookie is still a cookie.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: web service login

    Just to throw in another idea for you, but consider using tokens. An authorized person can have an identifier id (a random string of some sort or maybe a GUID) which he passes to an authentication web service which returns a token to him. He then passes the token along in each subsequent secure web service call which your web service verifies and knows is valid, because the token was just generated and is in a database for a while longer. You can make the token expire after 30 minutes too.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Location
    Manchester, England, UK
    Posts
    247

    Re: web service login

    I did consider this but the implementation wasnt as straight forward.

    I already have the user manager with forms based authentication for the UI.

Posting Permissions

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



Click Here to Expand Forum to Full Width