2 sites - 1 authentication method

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

  1. #1

    Default 2 sites - 1 authentication method

    We have developed two sites that both use forms authentication and have objects with custom principle interfaces and identity interfaces. I would like to use the same principals for both sites and load behind the scenes

    I have tried the following scenario
    1) Create a web service that automtically takes the credentials, loads the custom principal, and redirects the user in the new site. This of course...has a few drawbacks

    Is there a better method or best practices for doing this?....such as setting a cookie on one site....then overriding the page object to allways look for it and load the principal on each page. It seems that this might be a better way to maintain credentials between the two applications

    any thoughts would be greatly appreciated
    Chris
    Chris Guest

  2. Similar Questions and Discussions

    1. Is creationComplete=method() or initialize=method() theright solution for such kind of problem or ...?
      Hi everybody, I am using web service in my flex application and I want to visualize some data from collection of objects taht I receive from my Web...
    2. More then one Authentication Method
      We are using LDAP Authentication Method but sometimes some external users need to login our system. These users are not one of our LDAP users and we...
    3. Authentication method for Web Service
      Hi.. I am currently writing a manager that creates Windows Schedules remotely via. web services. I have just a few questions. What is the best way...
    4. Setting the Authentication Method on IIS from my SETUP project
      Hello, How's everybody??? Hey I have a quick question. How can I set up the Authentication Mode on IIS from my SETUP project. I'm using...
    5. Pass-thru authentication between 2 or more sites
      Hi all, I was wondering if there was a nice way to implement authentication between several sites. I currently have 2 web servers, one for the...
  3. #2

    Default Re: 2 sites - 1 authentication method

    Cookies are very commonly used in Single Sign On technologies, so there is
    no reason why this couldn't work for you. You could use a standard
    HttpModule on both sites that would add the cookie for newly authenticated
    users and read the cookie for returning users. You'd probably want to
    encrypt it so that it could not be tampered with.

    Joe K.

    "Chris" <anonymous@discussions.microsoft.com> wrote in message
    news:D4081DA3-0737-4505-9874-E3D14A920A62@microsoft.com...
    > We have developed two sites that both use forms authentication and have
    objects with custom principle interfaces and identity interfaces. I would
    like to use the same principals for both sites and load behind the scenes.
    >
    > I have tried the following scenario:
    > 1) Create a web service that automtically takes the credentials, loads
    the custom principal, and redirects the user in the new site. This of
    course...has a few drawbacks.
    >
    > Is there a better method or best practices for doing this?....such as
    setting a cookie on one site....then overriding the page object to allways
    look for it and load the principal on each page. It seems that this might
    be a better way to maintain credentials between the two applications?
    >
    > any thoughts would be greatly appreciated,
    > Chris

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: 2 sites - 1 authentication method

    I can recommend the book "Professional ASP.NET Security" from the Wrox
    Programmer to Programmer series.

    I haven't tried it myself yet (just about to), but basically this indicates
    that you can use the machine.config file to pre-set a hash value set to
    allow sharing of credentials between applications (using forms
    authentication) on the same server, or between different serers within a web
    farm.

    ISBN: 1-86100-620-9
    Price US$49.99.

    Hope that helps

    -Alec

    "Chris" <anonymous@discussions.microsoft.com> wrote in message
    news:D4081DA3-0737-4505-9874-E3D14A920A62@microsoft.com...
    > We have developed two sites that both use forms authentication and have
    objects with custom principle interfaces and identity interfaces. I would
    like to use the same principals for both sites and load behind the scenes.
    >
    > I have tried the following scenario:
    > 1) Create a web service that automtically takes the credentials, loads
    the custom principal, and redirects the user in the new site. This of
    course...has a few drawbacks.
    >
    > Is there a better method or best practices for doing this?....such as
    setting a cookie on one site....then overriding the page object to allways
    look for it and load the principal on each page. It seems that this might
    be a better way to maintain credentials between the two applications?
    >
    > any thoughts would be greatly appreciated,
    > Chris

    Sandy MacLean 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