formsAuthentication without configuring in web.config

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

  1. #1

    Default formsAuthentication without configuring in web.config

    Hi,
    I have a web site that uses normal windows authentication.
    I have a web service on the site that i want to configure Forms
    Authentication for, but it obviously doesn't fire unless i change the
    setting in web.config. is it possible to use formsAuthentication only for
    the web service?

    i tried using a custom httpModule, but i don't think my own encryption
    efforts would be as good as what's used in FormsAuth to encrypt the ticket.

    thanks for any tips
    tim mackey.
    --------------------------
    67d0ebfec70e8db3


    Tim Mackey Guest

  2. Similar Questions and Discussions

    1. Configuring Session remote object in flex-config
      Hi Is it possiobe to configure session remote object in flex-confg.xml like other named services?. I am configuring like this. <object...
    2. Configuring FormsAuthentication from code
      I have an asp.net application that has more then one login page. Different logon pages are used depending on how the customers have configured the...
    3. Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
      I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now...
    4. config file: a) what Module ? b) conditionals in config (for multiple hosts)
      Hi, a) I am looking for a module to handle config files. There are a number of these modules, like AppCconig. Any consensus about The Right...
    5. [RCR] Include CONFIG::Config['rubydocdir'] in rbconfig.rb
      Hi folks, I apologise if people have read this RCR and are not interested, but this is what I consider to be an important RCR, not a merely...
  3. #2

    Default Re: formsAuthentication without configuring in web.config

    Tim,

    Correct me if I'm wrong, but using Forms Authentication requires user
    interaction. It isn't suited for WebServices.

    Sincerely
    Svein Terje Gaup

    "Tim Mackey" <tim@scootasp.net> wrote in message
    news:2ibl0nFkusjlU1@uni-berlin.de...
    > Hi,
    > I have a web site that uses normal windows authentication.
    > I have a web service on the site that i want to configure Forms
    > Authentication for, but it obviously doesn't fire unless i change the
    > setting in web.config. is it possible to use formsAuthentication only for
    > the web service?
    >
    > i tried using a custom httpModule, but i don't think my own encryption
    > efforts would be as good as what's used in FormsAuth to encrypt the
    ticket.
    >
    > thanks for any tips
    > tim mackey.
    > --------------------------
    > 67d0ebfec70e8db3
    >
    >

    Svein Terje Gaup Guest

  4. #3

    Default Re: formsAuthentication without configuring in web.config

    You might want to grab the "Building Secure ASP.NET apps" whitepaper,
    which you can download from
    [url]http://www.microsoft.com/downloads/release.asp?ReleaseID=44047[/url]. It has
    more than you need, but you can read the rest later when you need it
    :-)

    --mary

    On Fri, 4 Jun 2004 17:06:46 +0100, "Tim Mackey" <tim@scootasp.net>
    wrote:
    >Hi,
    >I have a web site that uses normal windows authentication.
    >I have a web service on the site that i want to configure Forms
    >Authentication for, but it obviously doesn't fire unless i change the
    >setting in web.config. is it possible to use formsAuthentication only for
    >the web service?
    >
    >i tried using a custom httpModule, but i don't think my own encryption
    >efforts would be as good as what's used in FormsAuth to encrypt the ticket.
    >
    >thanks for any tips
    >tim mackey.
    >--------------------------
    >67d0ebfec70e8db3
    >
    Mary Chipman Guest

  5. #4

    Default Re: formsAuthentication without configuring in web.config

    Hi Svein,
    I thought this too, but dotnetjunkies has an article explaining how its
    done.
    [url]http://www.dotnetjunkies.com/Tutorial/5D8B6D51-97B7-4825-B919-49A721A3FDF6.dcik[/url]

    some modifications are necessary to work around the user-interaction part.
    it suits me fine except i can't figure out how to only apply
    formsauthentication for myService.asmx and not the whole app.

    any thoughts?
    thanks
    tim


    Tim Mackey 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