Blog Home  Home RSS 2.0 Atom 1.0 CDF  
Andreas Mersch - Single Sign-On mit ASP.NET 2.0 über zwei Applikationen
software development and more...
 
 Sunday, March 16, 2008
Um auf Anmeldeinformationen einer Web Applikation aus einer anderen Web Applikation auf der selben Maschine zugreifen zu können und so eine Art von Single Sign-On abzubilden, ist entscheidend, dass in der web.config beider Applikationen der selbe machineKey konfiguriert wurde.

LoginWebSite:

web.config:
<system.web>
    <!-- [...] -->

    <authentication mode="Forms">
        <forms loginUrl="Login.aspx"/>
    </authentication>

    <authorization>
        <deny users="?"/>
    </authorization>

        <machineKey validationKey="D61B3C89CB33A2F1422FF158AFF7320E8DB8CB5CDA1742572A487D94018787EF42682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE" decryptionKey="FBF50941F22D6A3B229EA593F24C41203DA6837F1122EF17" />
   
    <!-- [...] -->
</system.web>

Login.aspx:
    <!-- [...] -->
    <div>
        <asp:Login ID="Login1" runat="server">
        </asp:Login>
    </div>
    <!-- [...] -->


ApplWebSite:


web.config:
<system.web>
    <!-- [...] -->

    <authentication mode="Forms">
        <forms loginUrl="/Login/Login.aspx"/>
    </authentication>

    <authorization>
        <deny users="?"/>
    </authorization>

        <machineKey validationKey="D61B3C89CB33A2F1422FF158AFF7320E8DB8CB5CDA1742572A487D94018787EF42682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE" decryptionKey="FBF50941F22D6A3B229EA593F24C41203DA6837F1122EF17" />

    <!-- [...] -->

</system.web>

3/16/2008 7:48:15 PM (Mitteleuropäische Zeit , UTC+01:00)  #    Comments [1]   ASP.NET  |  Trackback
3/17/2008 12:11:22 PM (Mitteleuropäische Zeit , UTC+01:00)
Test mit SSO aus DotNetNuke (http://www.dotnetnuke.com) heraus verliefen ebenfalls positiv. Der einzige offene Punkt für ich ist noch die Übernahme von DNN Rolleninformationen, da diese nicht im Principal Objekt gespeichert sind.
Andreas Mersch
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Copyright © 2010 andreas mersch. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: