Asp. NET for SSO Single sign-on

Source: Internet
Author: User

Easy Single Sign-on with ASP. NET Forms Identity Authentication

For example, our primary domain is domain.com.

The other two-level domains have

1, list.domain.com

2, item.domain.com

3, home.domain.com

Login and register are placed in passport.domain.com this level two domain name goes down processing

configuring in Web. config

1 <AuthenticationMode= "Forms"> 4       <Formsname= "CNBDQ"loginurl= "/login"Protection= "All"Timeout= "480"Path="/"Domain= ". domain.com"/> 7 </Authentication>8 9 Ten <MachineKeyvalidationkey= "9173ba1d6c2b63bf9ecf58f8c5989cc5da7b8500f878a6d2f33550a0b2cca6e67f19a4e05119c45d343e499ab2c418ad6997585d447e4f6536d 1c3f33427b3f5 "

decryptionkey= "3c5f18aae07a2e0f32d88644f3cfd5637f0766fb55c47b20"Validation= "SHA1"/>

This configuration is required for other level two sites

After successful login

Formsauthentication.setauthcookie ("iqing"false);

If the site management background mgr.domain.com do not need to implement single sign-on that the site of the property then don't call CNBDQ on it.

Asp. NET for SSO Single sign-on

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.