ASP. net mvc learning 5. Change the logon page to SSO Verification

Source: Internet
Author: User

Single sign-on (SSO) is a process of session or user authentication. You only need to log on once to access all applications that are mutually trusted, you do not need to re-enter the user name and password during Secondary Logon. Simplify the account logon process, protect account and password security, and manage accounts in a unified manner.

For details, refer:Http://www.blogjava.net/Jack2007/archive/2008/04/10/191795.html

 

Specific implementation:

1. Add SingleSingOn. cs ()

2. Add the Login Method to the Controller:

SingleSingOn sso = SingleSingOn (); identity = sso. SignIn (); (identity! = RedirectToAction ();

3. Change the homepage of the default route to Login.

 

4. Run the program. The Login page is the SSO verification page:

 

4. login successful:

Related Article

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.